summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/wlan/wlanimp.cpp
authorbenmeyer <benmeyer>2002-12-11 22:15:16 (UTC)
committer benmeyer <benmeyer>2002-12-11 22:15:16 (UTC)
commit2217f9ba852aa2ffd36e5398988d9b1c65b18705 (patch) (unidiff)
tree071d5881f45f012720cd212028bd1a6a9455fd9c /noncore/settings/networksettings/wlan/wlanimp.cpp
parent6523ee46d49203d11f34a3dbbf966a318cef7def (diff)
downloadopie-2217f9ba852aa2ffd36e5398988d9b1c65b18705.zip
opie-2217f9ba852aa2ffd36e5398988d9b1c65b18705.tar.gz
opie-2217f9ba852aa2ffd36e5398988d9b1c65b18705.tar.bz2
Key accell
Diffstat (limited to 'noncore/settings/networksettings/wlan/wlanimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/wlan/wlanimp.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/wlan/wlanimp.cpp b/noncore/settings/networksettings/wlan/wlanimp.cpp
index ef7329e..120d4e5 100644
--- a/noncore/settings/networksettings/wlan/wlanimp.cpp
+++ b/noncore/settings/networksettings/wlan/wlanimp.cpp
@@ -215,25 +215,24 @@ void WLANImp::accept(){
215 if(essSpecificLineEdit->text().isEmpty()){ 215 if(essSpecificLineEdit->text().isEmpty()){
216 QMessageBox::information(this, "Error", "Please enter a ESS-ID.", QMessageBox::Ok); 216 QMessageBox::information(this, "Error", "Please enter a ESS-ID.", QMessageBox::Ok);
217 return; 217 return;
218 } 218 }
219 219
220 // Ok settings are good here, save 220 // Ok settings are good here, save
221 changeAndSaveSettingFile(); 221 changeAndSaveSettingFile();
222 222
223 // Try to save the interfaces settings. 223 // Try to save the interfaces settings.
224 if(!interfaceSetup->saveChanges()) 224 if(!interfaceSetup->saveChanges())
225 return; 225 return;
226 226
227 return;
228 // Restart the device now that the settings have changed 227 // Restart the device now that the settings have changed
229 QString initpath; 228 QString initpath;
230 if( QDir("/etc/rc.d/init.d").exists() ) 229 if( QDir("/etc/rc.d/init.d").exists() )
231 initpath = "/etc/rc.d/init.d"; 230 initpath = "/etc/rc.d/init.d";
232 else if( QDir("/etc/init.d").exists() ) 231 else if( QDir("/etc/init.d").exists() )
233 initpath = "/etc/init.d"; 232 initpath = "/etc/init.d";
234 if( initpath ) 233 if( initpath )
235 system(QString("%1/pcmcia stop").arg(initpath)); 234 system(QString("%1/pcmcia stop").arg(initpath));
236 if( initpath ) 235 if( initpath )
237 system(QString("%1/pcmcia start").arg(initpath)); 236 system(QString("%1/pcmcia start").arg(initpath));
238 237
239 // Close out the dialog 238 // Close out the dialog