From 9c550c88426713193671e7e38ff013a9a072776f Mon Sep 17 00:00:00 2001 From: Daniel Teichmann Date: Wed, 29 Jul 2020 17:43:11 +0200 Subject: Change QTimer system --- src/session.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/session.cpp b/src/session.cpp index eefa337..f10c3dc 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -7,9 +7,6 @@ Session::Session(QObject *parent, MainQMLAdaptor* main_gui) : QObject(parent) { _main_gui = main_gui; - statusTimer = new QTimer(this); - connect(statusTimer, &QTimer::timeout, this, &Session::statusTimerEvent); - // QML -> MainQMLAdaptor::handleConnectButtonClick --onConnectButtonClick--> this::handleConnectButtonClick QObject::connect(_main_gui, SIGNAL(onConnectButtonClick(bool)), @@ -37,7 +34,8 @@ Session::Session(QObject *parent, MainQMLAdaptor* main_gui) : QObject(parent) { } void Session::statusTimerEvent() { - this->refresh_status(this->getId()); + qDebug() << "Status timer event triggered"; + this->refresh_status_request_dbus(this->getId()); } void Session::init_vars() { @@ -51,8 +49,6 @@ void Session::init_vars() { _main_gui->setStatusIndicator(false); _minimizedBefore = false; - - this->statusTimer->stop(); } QString Session::getStatus() { -- cgit v1.2.3