diff options
author | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2020-07-29 17:43:11 +0200 |
---|---|---|
committer | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2020-07-29 17:43:11 +0200 |
commit | 9c550c88426713193671e7e38ff013a9a072776f (patch) | |
tree | faed899f88899621a60ecd77518163d87474ff85 /src | |
parent | e6038135dffa857e49446d3c7107afd48c82abba (diff) | |
download | RWA.Support.DesktopApp-9c550c88426713193671e7e38ff013a9a072776f.tar.gz RWA.Support.DesktopApp-9c550c88426713193671e7e38ff013a9a072776f.tar.bz2 RWA.Support.DesktopApp-9c550c88426713193671e7e38ff013a9a072776f.zip |
Change QTimer system
Diffstat (limited to 'src')
-rw-r--r-- | src/session.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
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() { |