aboutsummaryrefslogtreecommitdiff
path: root/src/session.cpp
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2020-07-29 17:38:48 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2020-07-29 17:38:48 +0200
commitec36fa958d13da26ad6e110e9306ea017f50ced8 (patch)
tree25f6693ad257068f2ee1d86de019cfec6ad0499e /src/session.cpp
parentf79085abfaa24ba7b70ea067519ebdf13b358cf7 (diff)
downloadRWA.Support.DesktopApp-ec36fa958d13da26ad6e110e9306ea017f50ced8.tar.gz
RWA.Support.DesktopApp-ec36fa958d13da26ad6e110e9306ea017f50ced8.tar.bz2
RWA.Support.DesktopApp-ec36fa958d13da26ad6e110e9306ea017f50ced8.zip
Add showWindow() function
Diffstat (limited to 'src/session.cpp')
-rw-r--r--src/session.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/session.cpp b/src/session.cpp
index 92ec5fc..eefa337 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -88,15 +88,20 @@ void Session::setStatus(QString status) {
// Clear current variables
this->init_vars();
_main_gui->setStatusIndicator(true, QColor(255, 0, 0, 127));
+
+ emit _main_gui->showWindow();
} else if (status == "stopped") {
/* Session is stopped */
guiString = tr("Remote Support session was stopped");
// Clear current variables
this->init_vars();
+
+ emit _main_gui->showWindow();
} else if (status == "active") {
/* Partner is connected */
if (!_minimizedBefore) {
+ qDebug() << "Minimizing window now...";
emit _main_gui->minimizeWindow();
_minimizedBefore = true;
}