summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp
authorkergoth <kergoth>2003-04-14 23:26:44 (UTC)
committer kergoth <kergoth>2003-04-14 23:26:44 (UTC)
commit9c0ba9922e12081ba87cce6583fe413ab5794cf6 (patch) (unidiff)
tree274472a08b80971045ad54a49b126f7b19454483 /noncore/settings/networksettings/interfaces/interfacesetupimp.cpp
parent4c0ff8a1bdc4750ee36c713392d0842e9eb9eeb3 (diff)
downloadopie-9c0ba9922e12081ba87cce6583fe413ab5794cf6.zip
opie-9c0ba9922e12081ba87cce6583fe413ab5794cf6.tar.gz
opie-9c0ba9922e12081ba87cce6583fe413ab5794cf6.tar.bz2
Correct the constructor, and ensure it does not remove all interface options, as that interferes with the new wireless module.
Diffstat (limited to 'noncore/settings/networksettings/interfaces/interfacesetupimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/interfaces/interfacesetupimp.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp b/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp
index 2a5520d..fc65c5f 100644
--- a/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp
+++ b/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp
@@ -14,22 +14,20 @@
14/** 14/**
15 * Constuctor. Set up the connection. A profile must be set. 15 * Constuctor. Set up the connection. A profile must be set.
16 */ 16 */
17InterfaceSetupImp::InterfaceSetupImp(QWidget* parent, const char* name, Interface *i, Interfaces *j, WFlags fl) : InterfaceSetup(parent, name, fl), interfaces(j), interface(i), delInterfaces(false){ 17InterfaceSetupImp::InterfaceSetupImp(QWidget* parent, const char* name, Interface *i, Interfaces *j, WFlags fl) : InterfaceSetup(parent, name, fl), interface(i), interfaces(j), delInterfaces(false){
18} 18 if (j == 0) {
19 19 delInterfaces = true;
20/** 20 interfaces = new Interfaces;
21 * Constuctor. Set up the connection. A profile must be set. 21 }
22 */
23InterfaceSetupImp::InterfaceSetupImp(QWidget* parent, const char* name, Interface *i, WFlags fl) : InterfaceSetup(parent, name, fl), interface(i), delInterfaces(true){
24 interfaces = new Interfaces;
25} 22}
26 23
27/** 24/**
28 * Destructor 25 * Destructor
29 */ 26 */
30InterfaceSetupImp::~InterfaceSetupImp(){ 27InterfaceSetupImp::~InterfaceSetupImp(){
31 if(delInterfaces) 28 if(delInterfaces) {
32 delete interfaces; 29 delete interfaces;
30 }
33} 31}
34 32
35/** 33/**
@@ -62,7 +60,7 @@ bool InterfaceSetupImp::saveSettings(){
62 QMessageBox::information(this, "Not Saved.", "Please fill in the IP address and\n subnet entries.", QMessageBox::Ok); 60 QMessageBox::information(this, "Not Saved.", "Please fill in the IP address and\n subnet entries.", QMessageBox::Ok);
63 return false; 61 return false;
64 } 62 }
65 interfaces->removeAllInterfaceOptions(); 63 //interfaces.removeAllInterfaceOptions();
66 64
67 // DHCP 65 // DHCP
68 if(dhcpCheckBox->isChecked()) 66 if(dhcpCheckBox->isChecked())