diff options
author | Björn Hagemeister | 2014-04-23 18:19:57 +0200 |
---|---|---|
committer | Björn Hagemeister | 2014-04-23 18:19:57 +0200 |
commit | 4af9cabb969c68abfd216588da94cae8eb1695c8 (patch) | |
tree | 621782e8e420e4a24f4b3dc4e478b5f547aa8fa8 /src/client | |
parent | Delete accidental temp-file commit (diff) | |
download | pvs2-4af9cabb969c68abfd216588da94cae8eb1695c8.tar.gz pvs2-4af9cabb969c68abfd216588da94cae8eb1695c8.tar.xz pvs2-4af9cabb969c68abfd216588da94cae8eb1695c8.zip |
Fix status icon updating not working
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/vnc/vncwindow.cpp | 7 | ||||
-rw-r--r-- | src/client/vnc/vncwindow.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/client/vnc/vncwindow.cpp b/src/client/vnc/vncwindow.cpp index f55aa28..cf97e74 100644 --- a/src/client/vnc/vncwindow.cpp +++ b/src/client/vnc/vncwindow.cpp @@ -118,7 +118,14 @@ void VncWindow::onProjectionStarted() //////////////////////////////////////////////////////////////////////////////// // Protected +void VncWindow::close() +{ + if (this->isVisible()) + QDialog::close(); + else + emit running(false, _clientId); +} void VncWindow::timerEvent(QTimerEvent *event) { if (event->timerId() == _redrawTimer) diff --git a/src/client/vnc/vncwindow.h b/src/client/vnc/vncwindow.h index 396e2de..f648ebf 100644 --- a/src/client/vnc/vncwindow.h +++ b/src/client/vnc/vncwindow.h @@ -52,6 +52,7 @@ protected: void resizeEvent(QResizeEvent* event); void closeEvent(QCloseEvent *e); void timerEvent(QTimerEvent *event); + void close(); //bool event(QEvent *event); //bool eventFilter(QObject *obj, QEvent *event); |