aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2020-07-29 17:43:11 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2020-07-29 17:43:11 +0200
commit9c550c88426713193671e7e38ff013a9a072776f (patch)
treefaed899f88899621a60ecd77518163d87474ff85 /src
parente6038135dffa857e49446d3c7107afd48c82abba (diff)
downloadRWA.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.cpp8
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() {