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
@@ -218,49 +218,51 @@ void WLANImp::writeOpts() {
218 } 218 }
219 219
220 if (specifyChan->isChecked()) { 220 if (specifyChan->isChecked()) {
221 interfaces->setInterfaceOption(QString("wireless_channel"), networkChannel->text()); 221 interfaces->setInterfaceOption(QString("wireless_channel"), networkChannel->text());
222 } else { 222 } else {
223 interfaces->removeInterfaceOption(QString("wireless_channel")); 223 interfaces->removeInterfaceOption(QString("wireless_channel"));
224 } 224 }
225 225
226 if (wepEnabled->isChecked()) { 226 if (wepEnabled->isChecked()) {
227 QStringList keyList; 227 QStringList keyList;
228 228
229 if (! keyLineEdit0->text().isNull()) { 229 if (! keyLineEdit0->text().isNull()) {
230 keyList += keyLineEdit0->text(); 230 keyList += keyLineEdit0->text();
231 keyList += "[1]"; 231 keyList += "[1]";
232 } else if (! keyLineEdit1->text().isNull()) { 232 } else if (! keyLineEdit1->text().isNull()) {
233 keyList += keyLineEdit1->text(); 233 keyList += keyLineEdit1->text();
234 keyList += "[2]"; 234 keyList += "[2]";
235 } else if (! keyLineEdit2->text().isNull()) { 235 } else if (! keyLineEdit2->text().isNull()) {
236 keyList += keyLineEdit2->text(); 236 keyList += keyLineEdit2->text();
237 keyList += "[3]"; 237 keyList += "[3]";
238 } else if (! keyLineEdit3->text().isNull()) { 238 } else if (! keyLineEdit3->text().isNull()) {
239 keyList += keyLineEdit3->text(); 239 keyList += keyLineEdit3->text();
240 keyList += "[4]"; 240 keyList += "[4]";
241 } 241 }
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}