summaryrefslogtreecommitdiff
path: root/noncore/net
authorbenmeyer <benmeyer>2002-10-16 21:00:21 (UTC)
committer benmeyer <benmeyer>2002-10-16 21:00:21 (UTC)
commit8834d3ee866fe9f0c093bf50fa78b4e0f5d2018c (patch) (unidiff)
tree6b0468933071ea8a0398ca3aaeb18cf8e2c23d86 /noncore/net
parent47769211862108250127a0c5c413c38c530c8fd8 (diff)
downloadopie-8834d3ee866fe9f0c093bf50fa78b4e0f5d2018c.zip
opie-8834d3ee866fe9f0c093bf50fa78b4e0f5d2018c.tar.gz
opie-8834d3ee866fe9f0c093bf50fa78b4e0f5d2018c.tar.bz2
fix segfault
Diffstat (limited to 'noncore/net') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/wlan/wlanimp.cpp4
-rw-r--r--noncore/net/networksetup/wlan/wlanmodule.cpp4
2 files changed, 4 insertions, 4 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
@@ -104,8 +104,8 @@ bool WLANImp::writeConfig()
104 */ 104 */
105void WLANImp::accept() 105void WLANImp::accept()
106{ 106{
107 if ( writeConfig() ) 107 if ( writeConfig() )
108 QDialog::accept(); 108 QDialog::accept();
109} 109}
110 110
111void WLANImp::done ( int r ) 111void WLANImp::done ( int r )
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
@@ -35,8 +35,8 @@ bool WLANModule::isOwner(Interface *i){
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 */
37QWidget *WLANModule::configure(QTabWidget **tabWidget){ 37QWidget *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}