implement actions

This commit is contained in:
arcan1s
2015-01-04 02:01:07 +03:00
parent a830fc9372
commit 924beacc23
7 changed files with 112 additions and 1411 deletions

View File

@ -49,16 +49,14 @@ bool NetctlAdds::checkHelperStatus(const bool useHelper)
{
if (debug) qDebug() << PDEBUG;
if (useHelper)
return !sendDBusRequest(QString("Active"), QList<QVariant>()).isEmpty();
else
return useHelper;
return (useHelper && !sendDBusRequest(QString("Active"), QList<QVariant>()).isEmpty());
}
void NetctlAdds::startHelper(const QString cmd)
void NetctlAdds::startApplication(const QString cmd)
{
if (debug) qDebug() << PDEBUG;
if (debug) qDebug() << PDEBUG << ":" << "cmd" << cmd;
QProcess command;