summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/wlan/wlanimp.cpp
Unidiff
Diffstat (limited to 'noncore/net/networksetup/wlan/wlanimp.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/networksetup/wlan/wlanimp.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/net/networksetup/wlan/wlanimp.cpp b/noncore/net/networksetup/wlan/wlanimp.cpp
index e64a633..87a9716 100644
--- a/noncore/net/networksetup/wlan/wlanimp.cpp
+++ b/noncore/net/networksetup/wlan/wlanimp.cpp
@@ -191,25 +191,24 @@ void WLANImp::changeAndSaveSettingFile(){
191 output = true; 191 output = true;
192 if(output) 192 if(output)
193 stream << (*it) << '\n'; 193 stream << (*it) << '\n';
194 } 194 }
195 file.close(); 195 file.close();
196} 196}
197 197
198/** 198/**
199 * Check to see if the current config is valid 199 * Check to see if the current config is valid
200 * Save wireless.opts, save interfaces 200 * Save wireless.opts, save interfaces
201 */ 201 */
202void WLANImp::accept(){ 202void WLANImp::accept(){
203 printf( "Accept pressed\n" );
204 if(wepEnabled->isChecked()){ 203 if(wepEnabled->isChecked()){
205 if(keyLineEdit0->text().isEmpty() && keyLineEdit1->text().isEmpty() && keyLineEdit2->text().isEmpty() && keyLineEdit3->text().isEmpty() ) 204 if(keyLineEdit0->text().isEmpty() && keyLineEdit1->text().isEmpty() && keyLineEdit2->text().isEmpty() && keyLineEdit3->text().isEmpty() )
206 { 205 {
207 QMessageBox::information(this, "", "Please enter a key for WEP.", QMessageBox::Ok); 206 QMessageBox::information(this, "", "Please enter a key for WEP.", QMessageBox::Ok);
208 return; 207 return;
209 } 208 }
210 } 209 }
211 210
212 // Ok settings are good here, save 211 // Ok settings are good here, save
213 changeAndSaveSettingFile(); 212 changeAndSaveSettingFile();
214 213
215 // Try to save the interfaces settings. 214 // Try to save the interfaces settings.