summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/wlan/wlanimp.cpp6
-rw-r--r--noncore/settings/networksettings/wlan/wlanimp.cpp6
2 files changed, 4 insertions, 8 deletions
diff --git a/noncore/net/networksetup/wlan/wlanimp.cpp b/noncore/net/networksetup/wlan/wlanimp.cpp
index 44c721a..6a56358 100644
--- a/noncore/net/networksetup/wlan/wlanimp.cpp
+++ b/noncore/net/networksetup/wlan/wlanimp.cpp
@@ -174,5 +174,5 @@ void WLANImp::changeAndSaveSettingFile(){
else
stream << " restricted";
- stream << "\n\"";
+ stream << "\"\n";
}
stream << "\tCHANNEL=" << networkChannel->value() << "\n";
@@ -183,5 +183,5 @@ void WLANImp::changeAndSaveSettingFile(){
if(line.contains(";;"))
output = true;
- if(output)
+ if(output && (*it).length() )
stream << (*it) << '\n';
}
@@ -209,6 +209,4 @@ void WLANImp::accept(){
return;
- QDialog::accept();
- return;
// Restart the device now that the settings have changed
QString initpath;
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
@@ -174,5 +174,5 @@ void WLANImp::changeAndSaveSettingFile(){
else
stream << " restricted";
- stream << "\n\"";
+ stream << "\"\n";
}
stream << "\tCHANNEL=" << networkChannel->value() << "\n";
@@ -183,5 +183,5 @@ void WLANImp::changeAndSaveSettingFile(){
if(line.contains(";;"))
output = true;
- if(output)
+ if(output && (*it).length() )
stream << (*it) << '\n';
}
@@ -209,6 +209,4 @@ void WLANImp::accept(){
return;
- QDialog::accept();
- return;
// Restart the device now that the settings have changed
QString initpath;