From 575f126fe474ba1d1603de73088c342c2a3eaa8f Mon Sep 17 00:00:00 2001 From: benmeyer Date: Fri, 22 Nov 2002 20:57:18 +0000 Subject: Remove return --- (limited to 'noncore/settings') diff --git a/noncore/settings/networksettings/wlan/wlanimp.cpp b/noncore/settings/networksettings/wlan/wlanimp.cpp index 44c721a..6a56358 100644 --- a/noncore/settings/networksettings/wlan/wlanimp.cpp +++ b/noncore/settings/networksettings/wlan/wlanimp.cpp @@ -173,7 +173,7 @@ void WLANImp::changeAndSaveSettingFile(){ stream << " open"; else stream << " restricted"; - stream << "\n\""; + stream << "\"\n"; } stream << "\tCHANNEL=" << networkChannel->value() << "\n"; stream << "\tRATE=auto\n"; @@ -182,7 +182,7 @@ void WLANImp::changeAndSaveSettingFile(){ } if(line.contains(";;")) output = true; - if(output) + if(output && (*it).length() ) stream << (*it) << '\n'; } file.close(); @@ -208,8 +208,6 @@ void WLANImp::accept(){ if(!interfaceSetup->saveChanges()) return; - QDialog::accept(); - return; // Restart the device now that the settings have changed QString initpath; if( QDir("/etc/rc.d/init.d").exists() ) -- cgit v0.9.0.2