-rw-r--r-- | noncore/net/networksetup/wlan/wlanimp.cpp | 4 | ||||
-rw-r--r-- | noncore/net/networksetup/wlan/wlanmodule.cpp | 4 | ||||
-rw-r--r-- | noncore/settings/networksettings/wlan/wlanimp.cpp | 4 | ||||
-rw-r--r-- | noncore/settings/networksettings/wlan/wlanmodule.cpp | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/noncore/net/networksetup/wlan/wlanimp.cpp b/noncore/net/networksetup/wlan/wlanimp.cpp index 60ffeeb..806643d 100644 --- a/noncore/net/networksetup/wlan/wlanimp.cpp +++ b/noncore/net/networksetup/wlan/wlanimp.cpp | |||
@@ -103,10 +103,10 @@ bool WLANImp::writeConfig() | |||
103 | /** | 103 | /** |
104 | */ | 104 | */ |
105 | void WLANImp::accept() | 105 | void WLANImp::accept() |
106 | { | 106 | { |
107 | if ( writeConfig() ) | 107 | if ( writeConfig() ) |
108 | QDialog::accept(); | 108 | QDialog::accept(); |
109 | } | 109 | } |
110 | 110 | ||
111 | void WLANImp::done ( int r ) | 111 | void WLANImp::done ( int r ) |
112 | { | 112 | { |
diff --git a/noncore/net/networksetup/wlan/wlanmodule.cpp b/noncore/net/networksetup/wlan/wlanmodule.cpp index 321fa11..98d2eb6 100644 --- a/noncore/net/networksetup/wlan/wlanmodule.cpp +++ b/noncore/net/networksetup/wlan/wlanmodule.cpp | |||
@@ -34,10 +34,10 @@ bool WLANModule::isOwner(Interface *i){ | |||
34 | * @param tabWidget a pointer to the tab widget that this configure has. | 34 | * @param tabWidget a pointer to the tab widget that this configure has. |
35 | * @return QWidget* pointer to the tab widget in this modules configure. | 35 | * @return QWidget* pointer to the tab widget in this modules configure. |
36 | */ | 36 | */ |
37 | QWidget *WLANModule::configure(QTabWidget **tabWidget){ | 37 | QWidget *WLANModule::configure(QTabWidget **tabWidget){ |
38 | Config cfg("wireless"); | 38 | Config *cfg = new Config("wireless"); |
39 | WLANImp *wlanconfig = new WLANImp(cfg); | 39 | WLANImp *wlanconfig = new WLANImp(*cfg); |
40 | (*tabWidget) = wlanconfig->tabWidget; | 40 | (*tabWidget) = wlanconfig->tabWidget; |
41 | return wlanconfig; | 41 | return wlanconfig; |
42 | } | 42 | } |
43 | 43 | ||
diff --git a/noncore/settings/networksettings/wlan/wlanimp.cpp b/noncore/settings/networksettings/wlan/wlanimp.cpp index 60ffeeb..806643d 100644 --- a/noncore/settings/networksettings/wlan/wlanimp.cpp +++ b/noncore/settings/networksettings/wlan/wlanimp.cpp | |||
@@ -103,10 +103,10 @@ bool WLANImp::writeConfig() | |||
103 | /** | 103 | /** |
104 | */ | 104 | */ |
105 | void WLANImp::accept() | 105 | void WLANImp::accept() |
106 | { | 106 | { |
107 | if ( writeConfig() ) | 107 | if ( writeConfig() ) |
108 | QDialog::accept(); | 108 | QDialog::accept(); |
109 | } | 109 | } |
110 | 110 | ||
111 | void WLANImp::done ( int r ) | 111 | void WLANImp::done ( int r ) |
112 | { | 112 | { |
diff --git a/noncore/settings/networksettings/wlan/wlanmodule.cpp b/noncore/settings/networksettings/wlan/wlanmodule.cpp index 321fa11..98d2eb6 100644 --- a/noncore/settings/networksettings/wlan/wlanmodule.cpp +++ b/noncore/settings/networksettings/wlan/wlanmodule.cpp | |||
@@ -34,10 +34,10 @@ bool WLANModule::isOwner(Interface *i){ | |||
34 | * @param tabWidget a pointer to the tab widget that this configure has. | 34 | * @param tabWidget a pointer to the tab widget that this configure has. |
35 | * @return QWidget* pointer to the tab widget in this modules configure. | 35 | * @return QWidget* pointer to the tab widget in this modules configure. |
36 | */ | 36 | */ |
37 | QWidget *WLANModule::configure(QTabWidget **tabWidget){ | 37 | QWidget *WLANModule::configure(QTabWidget **tabWidget){ |
38 | Config cfg("wireless"); | 38 | Config *cfg = new Config("wireless"); |
39 | WLANImp *wlanconfig = new WLANImp(cfg); | 39 | WLANImp *wlanconfig = new WLANImp(*cfg); |
40 | (*tabWidget) = wlanconfig->tabWidget; | 40 | (*tabWidget) = wlanconfig->tabWidget; |
41 | return wlanconfig; | 41 | return wlanconfig; |
42 | } | 42 | } |
43 | 43 | ||