summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/wlan/wlanimp.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/wlan/wlanimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/wlan/wlanimp.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/wlan/wlanimp.cpp b/noncore/settings/networksettings/wlan/wlanimp.cpp
index 648932f..1782c22 100644
--- a/noncore/settings/networksettings/wlan/wlanimp.cpp
+++ b/noncore/settings/networksettings/wlan/wlanimp.cpp
@@ -222,23 +222,26 @@ void WLANImp::accept(){
222 changeAndSaveSettingFile(); 222 changeAndSaveSettingFile();
223 223
224 // Try to save the interfaces settings. 224 // Try to save the interfaces settings.
225 if(!interfaceSetup->saveChanges()) 225 if(!interfaceSetup->saveChanges())
226 return; 226 return;
227 227
228 // Restart the device now that the settings have changed 228 // Restart the device now that the settings have changed
229 QString initpath; 229 QString initpath;
230 if( QDir("/etc/rc.d/init.d").exists() ) 230 if( QDir("/etc/rc.d/init.d").exists() )
231 initpath = "/etc/rc.d/init.d"; 231 initpath = "/etc/rc.d/init.d";
232 else if( QDir("/etc/init.d").exists() ) 232 else if( QDir("/etc/init.d").exists() )
233 initpath = "/etc/init.d"; 233 initpath = "/etc/init.d";
234
235 // It would be kinda cool if we didn't have to do this and could just to ifup/down
236
234 if( initpath ) 237 if( initpath )
235 system(QString("%1/pcmcia stop").arg(initpath)); 238 system(QString("%1/pcmcia stop").arg(initpath));
236 if( initpath ) 239 if( initpath )
237 system(QString("%1/pcmcia start").arg(initpath)); 240 system(QString("%1/pcmcia start").arg(initpath));
238 241
239 // Close out the dialog 242 // Close out the dialog
240 QDialog::accept(); 243 QDialog::accept();
241} 244}
242 245
243// wlanimp.cpp 246// wlanimp.cpp
244 247