Replace various '#define' strings - part 6

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/5/head
Michele Calgaro 11 months ago
parent 84dc4614d8
commit 367cb43dc1
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -930,7 +930,7 @@ TQString WirelessAssistant::runCommand( const TQStringList & cmd, int timeout, b
// a very basic and easy-to-workaround attepmt to restrict using dangerous commands via custom commands setting. This *REALLY* needs a working solution.
if ( cmd[0] == "rm" || cmd[0] == "mv" || cmd[0] == "cp" || cmd[0] == "ln" ) return TQString();
TQProcess* p = new TQProcess( TQT_TQOBJECT(this) );
TQProcess* p = new TQProcess( this );
p->setArguments( cmd );
p->start();
@ -1211,7 +1211,7 @@ bool WirelessAssistant::setWpaClientEnabled( bool e, const TQString& iface, TQSt
std::cout << "Using wpa_supplicant driver: " << driver.ascii() << std::endl;
}
TQProcess* wp = new TQProcess( TQT_TQOBJECT(this) );
TQProcess* wp = new TQProcess( this );
wp->clearArguments();
wp->addArgument( Commands.wpa_supplicant );
wp->addArgument( "-W" ); //wait for control interface

Loading…
Cancel
Save