mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-04-24 15:37:23 +00:00
more correct checking dbus response
This commit is contained in:
parent
b909222db9
commit
f18e74917b
@ -43,7 +43,7 @@ bool existingSessionOperation(const QString operation)
|
||||
QDBusMessage response = bus.call(request);
|
||||
QList<QVariant> arguments = response.arguments();
|
||||
|
||||
return !arguments.isEmpty();
|
||||
return (!arguments.isEmpty() && bool(arguments[0].toInt()));
|
||||
}
|
||||
|
||||
|
||||
|
@ -234,7 +234,7 @@ bool MainWindow::isHelperActive()
|
||||
DBUS_HELPER_INTERFACE, QString("Active"),
|
||||
QList<QVariant>(), true, debug);
|
||||
|
||||
return (!responce.isEmpty());
|
||||
return (!responce.isEmpty() && bool(responce[0].toInt()));
|
||||
}
|
||||
|
||||
|
||||
|
@ -43,7 +43,7 @@ bool existingSessionOperation(const QString operation)
|
||||
QDBusMessage response = bus.call(request);
|
||||
QList<QVariant> arguments = response.arguments();
|
||||
|
||||
return !arguments.isEmpty();
|
||||
return (!arguments.isEmpty() && bool(arguments[0].toInt()));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user