diff --git a/sources/gui/src/main.cpp b/sources/gui/src/main.cpp index 40ce105..923032b 100644 --- a/sources/gui/src/main.cpp +++ b/sources/gui/src/main.cpp @@ -43,7 +43,7 @@ bool existingSessionOperation(const QString operation) QDBusMessage response = bus.call(request); QList arguments = response.arguments(); - return !arguments.isEmpty(); + return (!arguments.isEmpty() && bool(arguments[0].toInt())); } diff --git a/sources/gui/src/mainwindow.cpp b/sources/gui/src/mainwindow.cpp index 39ca781..e773397 100644 --- a/sources/gui/src/mainwindow.cpp +++ b/sources/gui/src/mainwindow.cpp @@ -234,7 +234,7 @@ bool MainWindow::isHelperActive() DBUS_HELPER_INTERFACE, QString("Active"), QList(), true, debug); - return (!responce.isEmpty()); + return (!responce.isEmpty() && bool(responce[0].toInt())); } diff --git a/sources/helper/src/main.cpp b/sources/helper/src/main.cpp index 861b518..a0ec8d4 100644 --- a/sources/helper/src/main.cpp +++ b/sources/helper/src/main.cpp @@ -43,7 +43,7 @@ bool existingSessionOperation(const QString operation) QDBusMessage response = bus.call(request); QList arguments = response.arguments(); - return !arguments.isEmpty(); + return (!arguments.isEmpty() && bool(arguments[0].toInt())); }