author | kergoth <kergoth> | 2003-04-14 23:26:44 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-04-14 23:26:44 (UTC) |
commit | 9c0ba9922e12081ba87cce6583fe413ab5794cf6 (patch) (unidiff) | |
tree | 274472a08b80971045ad54a49b126f7b19454483 | |
parent | 4c0ff8a1bdc4750ee36c713392d0842e9eb9eeb3 (diff) | |
download | opie-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.
-rw-r--r-- | noncore/settings/networksettings/interfaces/interfacesetupimp.cpp | 18 | ||||
-rw-r--r-- | noncore/settings/networksettings/interfaces/interfacesetupimp.h | 3 |
2 files changed, 9 insertions, 12 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 | |||
@@ -16,10 +16,7 @@ | |||
16 | */ | 16 | */ |
17 | InterfaceSetupImp::InterfaceSetupImp(QWidget* parent, const char* name, Interface *i, Interfaces *j, WFlags fl) : InterfaceSetup(parent, name, fl), interfaces(j), interface(i), delInterfaces(false){ | 17 | InterfaceSetupImp::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 | */ | ||
23 | InterfaceSetupImp::InterfaceSetupImp(QWidget* parent, const char* name, Interface *i, WFlags fl) : InterfaceSetup(parent, name, fl), interface(i), delInterfaces(true){ | ||
24 | interfaces = new Interfaces; | ||
25 | } | 22 | } |
@@ -30,4 +27,5 @@ InterfaceSetupImp::InterfaceSetupImp(QWidget* parent, const char* name, Interfac | |||
30 | InterfaceSetupImp::~InterfaceSetupImp(){ | 27 | InterfaceSetupImp::~InterfaceSetupImp(){ |
31 | if(delInterfaces) | 28 | if(delInterfaces) { |
32 | delete interfaces; | 29 | delete interfaces; |
30 | } | ||
33 | } | 31 | } |
@@ -64,3 +62,3 @@ bool InterfaceSetupImp::saveSettings(){ | |||
64 | } | 62 | } |
65 | interfaces->removeAllInterfaceOptions(); | 63 | //interfaces.removeAllInterfaceOptions(); |
66 | 64 | ||
diff --git a/noncore/settings/networksettings/interfaces/interfacesetupimp.h b/noncore/settings/networksettings/interfaces/interfacesetupimp.h index c4ace77..172da6a 100644 --- a/noncore/settings/networksettings/interfaces/interfacesetupimp.h +++ b/noncore/settings/networksettings/interfaces/interfacesetupimp.h | |||
@@ -13,3 +13,2 @@ class InterfaceSetupImp : public InterfaceSetup { | |||
13 | public: | 13 | public: |
14 | InterfaceSetupImp( QWidget* parent = 0, const char* name = 0, Interface *i = 0, WFlags fl = 0); | ||
15 | InterfaceSetupImp( QWidget* parent = 0, const char* name = 0, Interface *i = 0, Interfaces *j = 0, WFlags fl = 0); | 14 | InterfaceSetupImp( QWidget* parent = 0, const char* name = 0, Interface *i = 0, Interfaces *j = 0, WFlags fl = 0); |
@@ -39,3 +38,3 @@ public: | |||
39 | setCaption("Interface Setup"); | 38 | setCaption("Interface Setup"); |
40 | interfaceSetup = new InterfaceSetupImp(this, "InterfaceSetup",i,fl); | 39 | interfaceSetup = new InterfaceSetupImp(this, "InterfaceSetup",i); |
41 | InterfaceSetupLayout->addWidget( interfaceSetup ); | 40 | InterfaceSetupLayout->addWidget( interfaceSetup ); |