summaryrefslogtreecommitdiff
path: root/noncore
authorkergoth <kergoth>2003-03-28 04:00:35 (UTC)
committer kergoth <kergoth>2003-03-28 04:00:35 (UTC)
commit5ceaf5abfb26bb57687eead3201c08034239dd30 (patch) (side-by-side diff)
tree1bec6c5aece4211abd19248c1bb24731641dc671 /noncore
parent1f7da3774c074c57832c7eaa88dd67fba370db71 (diff)
downloadopie-5ceaf5abfb26bb57687eead3201c08034239dd30.zip
opie-5ceaf5abfb26bb57687eead3201c08034239dd30.tar.gz
opie-5ceaf5abfb26bb57687eead3201c08034239dd30.tar.bz2
Correct the use of OProcess.
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/wlan/wlanimp.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/noncore/settings/networksettings/wlan/wlanimp.cpp b/noncore/settings/networksettings/wlan/wlanimp.cpp
index db03266..3797e22 100644
--- a/noncore/settings/networksettings/wlan/wlanimp.cpp
+++ b/noncore/settings/networksettings/wlan/wlanimp.cpp
@@ -225,20 +225,14 @@ void WLANImp::accept(){
// Try to save the interfaces settings.
if(!interfaceSetup->saveChanges())
return;
- OProcess insert;
-// OProcess eject;
-
- insert << "sh -c \"cardctl insert && cardctl eject\"";
-// eject << "cardctl eject";
-
-// if (!eject.start(OProcess::Block, OProcess::NoCommunication) ) {
-// qWarning("could not start cardctl eject");
-// }
+ OProcess insert(QString("sh"));
+ insert << "-c";
+ insert << "cardctl eject && cardctl insert";
if (!insert.start(OProcess::DontCare, OProcess::NoCommunication) ) {
- qWarning("could not start cardctl insert");
+ qWarning("could not start cardctl");
}
// Close out the dialog
QDialog::accept();