author | andyq <andyq> | 2002-11-10 17:25:25 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-11-10 17:25:25 (UTC) |
commit | 270d8caf81bdf6486df38b78cb6f5299965ad9ce (patch) (unidiff) | |
tree | 57bca357765a09c9479e360fe24bdf1e03143890 | |
parent | 49574d593f9b9578cf3b8f4de8192188b807d144 (diff) | |
download | opie-270d8caf81bdf6486df38b78cb6f5299965ad9ce.zip opie-270d8caf81bdf6486df38b78cb6f5299965ad9ce.tar.gz opie-270d8caf81bdf6486df38b78cb6f5299965ad9ce.tar.bz2 |
removed left in debug
-rw-r--r-- | noncore/net/networksetup/wlan/wlanimp.cpp | 1 | ||||
-rw-r--r-- | noncore/settings/networksettings/wlan/wlanimp.cpp | 1 |
2 files changed, 0 insertions, 2 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 | |||
@@ -187,33 +187,32 @@ void WLANImp::changeAndSaveSettingFile(){ | |||
187 | if(line.contains("esac")) | 187 | if(line.contains("esac")) |
188 | stream << line << "\n"; | 188 | stream << line << "\n"; |
189 | } | 189 | } |
190 | if(line.contains(";;")) | 190 | if(line.contains(";;")) |
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 | */ |
202 | void WLANImp::accept(){ | 202 | void 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. |
216 | if(!interfaceSetup->saveChanges()) | 215 | if(!interfaceSetup->saveChanges()) |
217 | return; | 216 | return; |
218 | 217 | ||
219 | // Restart the device now that the settings have changed | 218 | // Restart the device now that the settings have changed |
diff --git a/noncore/settings/networksettings/wlan/wlanimp.cpp b/noncore/settings/networksettings/wlan/wlanimp.cpp index e64a633..87a9716 100644 --- a/noncore/settings/networksettings/wlan/wlanimp.cpp +++ b/noncore/settings/networksettings/wlan/wlanimp.cpp | |||
@@ -187,33 +187,32 @@ void WLANImp::changeAndSaveSettingFile(){ | |||
187 | if(line.contains("esac")) | 187 | if(line.contains("esac")) |
188 | stream << line << "\n"; | 188 | stream << line << "\n"; |
189 | } | 189 | } |
190 | if(line.contains(";;")) | 190 | if(line.contains(";;")) |
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 | */ |
202 | void WLANImp::accept(){ | 202 | void 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. |
216 | if(!interfaceSetup->saveChanges()) | 215 | if(!interfaceSetup->saveChanges()) |
217 | return; | 216 | return; |
218 | 217 | ||
219 | // Restart the device now that the settings have changed | 218 | // Restart the device now that the settings have changed |