-rw-r--r-- | noncore/net/networksetup/wlan/wlanimp.cpp | 6 | ||||
-rw-r--r-- | noncore/settings/networksettings/wlan/wlanimp.cpp | 6 |
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(){ | |||
174 | else | 174 | else |
175 | stream << " restricted"; | 175 | stream << " restricted"; |
176 | stream << "\n\""; | 176 | stream << "\"\n"; |
177 | } | 177 | } |
178 | stream << "\tCHANNEL=" << networkChannel->value() << "\n"; | 178 | stream << "\tCHANNEL=" << networkChannel->value() << "\n"; |
@@ -183,5 +183,5 @@ void WLANImp::changeAndSaveSettingFile(){ | |||
183 | if(line.contains(";;")) | 183 | if(line.contains(";;")) |
184 | output = true; | 184 | output = true; |
185 | if(output) | 185 | if(output && (*it).length() ) |
186 | stream << (*it) << '\n'; | 186 | stream << (*it) << '\n'; |
187 | } | 187 | } |
@@ -209,6 +209,4 @@ void WLANImp::accept(){ | |||
209 | return; | 209 | return; |
210 | 210 | ||
211 | QDialog::accept(); | ||
212 | return; | ||
213 | // Restart the device now that the settings have changed | 211 | // Restart the device now that the settings have changed |
214 | QString initpath; | 212 | 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(){ | |||
174 | else | 174 | else |
175 | stream << " restricted"; | 175 | stream << " restricted"; |
176 | stream << "\n\""; | 176 | stream << "\"\n"; |
177 | } | 177 | } |
178 | stream << "\tCHANNEL=" << networkChannel->value() << "\n"; | 178 | stream << "\tCHANNEL=" << networkChannel->value() << "\n"; |
@@ -183,5 +183,5 @@ void WLANImp::changeAndSaveSettingFile(){ | |||
183 | if(line.contains(";;")) | 183 | if(line.contains(";;")) |
184 | output = true; | 184 | output = true; |
185 | if(output) | 185 | if(output && (*it).length() ) |
186 | stream << (*it) << '\n'; | 186 | stream << (*it) << '\n'; |
187 | } | 187 | } |
@@ -209,6 +209,4 @@ void WLANImp::accept(){ | |||
209 | return; | 209 | return; |
210 | 210 | ||
211 | QDialog::accept(); | ||
212 | return; | ||
213 | // Restart the device now that the settings have changed | 211 | // Restart the device now that the settings have changed |
214 | QString initpath; | 212 | QString initpath; |