summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/wlan/wlanimp2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/wlan/wlanimp2.cpp b/noncore/settings/networksettings/wlan/wlanimp2.cpp
index 01c9668..73afc92 100644
--- a/noncore/settings/networksettings/wlan/wlanimp2.cpp
+++ b/noncore/settings/networksettings/wlan/wlanimp2.cpp
@@ -242,25 +242,27 @@ void WLANImp::writeOpts() {
242 if (acceptNonEnc->isChecked()) { 242 if (acceptNonEnc->isChecked()) {
243 keyList += "open"; 243 keyList += "open";
244 } else { 244 } else {
245 keyList += "restricted"; 245 keyList += "restricted";
246 } 246 }
247 247
248 keyList += "key"; 248 keyList += "key";
249 if (keyRadio0->isChecked()) { 249 if (keyRadio0->isChecked()) {
250 keyList += "[1]"; 250 keyList += "[1]";
251 } else if (keyRadio1->isChecked()) { 251 } else if (keyRadio1->isChecked()) {
252 keyList += "[2]"; 252 keyList += "[2]";
253 } else if (keyRadio2->isChecked()) { 253 } else if (keyRadio2->isChecked()) {
254 keyList += "[3]"; 254 keyList += "[3]";
255 } else if (keyRadio3->isChecked()) { 255 } else if (keyRadio3->isChecked()) {
256 keyList += "[4]"; 256 keyList += "[4]";
257 } 257 }
258 interfaces->setInterfaceOption(QString("wireless_key"), keyList.join(QString(" "))); 258 interfaces->setInterfaceOption(QString("wireless_key"), keyList.join(QString(" ")));
259 } else { 259 } else {
260 interfaces->removeInterfaceOption(QString("wireless_key")); 260 interfaces->removeInterfaceOption(QString("wireless_key"));
261 } 261 }
262 interfaces->removeInterfaceOption(QString("wireless_enc")); 262 interfaces->removeInterfaceOption(QString("wireless_enc"));
263 263
264 if(!interfaceSetup->saveChanges()) 264 if(!interfaceSetup->saveChanges())
265 return; 265 return;
266
267 QDialog::accept();
266} 268}