From 5ceaf5abfb26bb57687eead3201c08034239dd30 Mon Sep 17 00:00:00 2001 From: kergoth Date: Fri, 28 Mar 2003 04:00:35 +0000 Subject: Correct the use of OProcess. --- (limited to 'noncore/settings') 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 @@ -226,18 +226,12 @@ void WLANImp::accept(){ 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 -- cgit v0.9.0.2