author | benmeyer <benmeyer> | 2002-10-31 20:15:07 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-10-31 20:15:07 (UTC) |
commit | a491aa2ba326826b7493caa83fc6050e11d53be5 (patch) (unidiff) | |
tree | 4598d1770de61605dceafceafce3ad43b633f711 /noncore/net/networksetup/interfaces | |
parent | ab5a63544deead5206ca47ff8bf94123aa032281 (diff) | |
download | opie-a491aa2ba326826b7493caa83fc6050e11d53be5.zip opie-a491aa2ba326826b7493caa83fc6050e11d53be5.tar.gz opie-a491aa2ba326826b7493caa83fc6050e11d53be5.tar.bz2 |
Changed a number of "OK" to QMesageBox::OK
Diffstat (limited to 'noncore/net/networksetup/interfaces') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/networksetup/interfaces/interfacesetupimp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/networksetup/interfaces/interfacesetupimp.cpp b/noncore/net/networksetup/interfaces/interfacesetupimp.cpp index a19aaeb..3b1a4de 100644 --- a/noncore/net/networksetup/interfaces/interfacesetupimp.cpp +++ b/noncore/net/networksetup/interfaces/interfacesetupimp.cpp | |||
@@ -39,49 +39,49 @@ InterfaceSetupImp::InterfaceSetupImp(QWidget* parent, const char* name, Interfac | |||
39 | bool InterfaceSetupImp::saveChanges(){ | 39 | bool InterfaceSetupImp::saveChanges(){ |
40 | if(!saveSettings()) | 40 | if(!saveSettings()) |
41 | return false; | 41 | return false; |
42 | interfaces->write(); | 42 | interfaces->write(); |
43 | return true; | 43 | return true; |
44 | } | 44 | } |
45 | 45 | ||
46 | /** | 46 | /** |
47 | * Save the settings for the current Interface. | 47 | * Save the settings for the current Interface. |
48 | * @return bool true if successfull, false otherwise | 48 | * @return bool true if successfull, false otherwise |
49 | */ | 49 | */ |
50 | bool InterfaceSetupImp::saveSettings(){ | 50 | bool InterfaceSetupImp::saveSettings(){ |
51 | // eh can't really do anything about it other then return. :-D | 51 | // eh can't really do anything about it other then return. :-D |
52 | if(!interfaces->isInterfaceSet()) | 52 | if(!interfaces->isInterfaceSet()) |
53 | return true; | 53 | return true; |
54 | 54 | ||
55 | bool error = false; | 55 | bool error = false; |
56 | // Loopback case | 56 | // Loopback case |
57 | if(interfaces->getInterfaceMethod(error) == INTERFACES_LOOPBACK){ | 57 | if(interfaces->getInterfaceMethod(error) == INTERFACES_LOOPBACK){ |
58 | interfaces->setAuto(interface->getInterfaceName(), autoStart->isChecked()); | 58 | interfaces->setAuto(interface->getInterfaceName(), autoStart->isChecked()); |
59 | return true; | 59 | return true; |
60 | } | 60 | } |
61 | 61 | ||
62 | if(!dhcpCheckBox->isChecked() && (ipAddressEdit->text().isEmpty() || subnetMaskEdit->text().isEmpty())){ | 62 | if(!dhcpCheckBox->isChecked() && (ipAddressEdit->text().isEmpty() || subnetMaskEdit->text().isEmpty())){ |
63 | QMessageBox::information(this, "Not Saved.", "Please fill in the IP address and\n subnet entries.", "Ok"); | 63 | QMessageBox::information(this, "Not Saved.", "Please fill in the IP address and\n subnet entries.", QMessageBox::Ok); |
64 | return false; | 64 | return false; |
65 | } | 65 | } |
66 | interfaces->removeAllInterfaceOptions(); | 66 | interfaces->removeAllInterfaceOptions(); |
67 | 67 | ||
68 | // DHCP | 68 | // DHCP |
69 | if(dhcpCheckBox->isChecked()){ | 69 | if(dhcpCheckBox->isChecked()){ |
70 | interfaces->setInterfaceMethod(INTERFACES_METHOD_DHCP); | 70 | interfaces->setInterfaceMethod(INTERFACES_METHOD_DHCP); |
71 | interfaces->setInterfaceOption("leasehours", QString("%1").arg(leaseTime->value())); | 71 | interfaces->setInterfaceOption("leasehours", QString("%1").arg(leaseTime->value())); |
72 | interfaces->setInterfaceOption("leasetime", QString("%1").arg(leaseTime->value()*60*60)); | 72 | interfaces->setInterfaceOption("leasetime", QString("%1").arg(leaseTime->value()*60*60)); |
73 | } | 73 | } |
74 | else{ | 74 | else{ |
75 | interfaces->setInterfaceMethod("static"); | 75 | interfaces->setInterfaceMethod("static"); |
76 | interfaces->setInterfaceOption("address", ipAddressEdit->text()); | 76 | interfaces->setInterfaceOption("address", ipAddressEdit->text()); |
77 | interfaces->setInterfaceOption("netmask", subnetMaskEdit->text()); | 77 | interfaces->setInterfaceOption("netmask", subnetMaskEdit->text()); |
78 | interfaces->setInterfaceOption("gateway", gatewayEdit->text()); | 78 | interfaces->setInterfaceOption("gateway", gatewayEdit->text()); |
79 | if(!firstDNSLineEdit->text().isEmpty() || !secondDNSLineEdit->text().isEmpty()){ | 79 | if(!firstDNSLineEdit->text().isEmpty() || !secondDNSLineEdit->text().isEmpty()){ |
80 | QString dns = firstDNSLineEdit->text() + " " + secondDNSLineEdit->text(); | 80 | QString dns = firstDNSLineEdit->text() + " " + secondDNSLineEdit->text(); |
81 | interfaces->setInterfaceOption("up "DNSSCRIPT" -a ", dns); | 81 | interfaces->setInterfaceOption("up "DNSSCRIPT" -a ", dns); |
82 | interfaces->setInterfaceOption("down "DNSSCRIPT" -r ", dns); | 82 | interfaces->setInterfaceOption("down "DNSSCRIPT" -r ", dns); |
83 | } | 83 | } |
84 | } | 84 | } |
85 | 85 | ||
86 | // IP Information | 86 | // IP Information |
87 | interfaces->setAuto(interface->getInterfaceName(), autoStart->isChecked()); | 87 | interfaces->setAuto(interface->getInterfaceName(), autoStart->isChecked()); |