summaryrefslogtreecommitdiffstats
path: root/src/client/vnc/vncwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/vnc/vncwindow.cpp')
-rw-r--r--src/client/vnc/vncwindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/vnc/vncwindow.cpp b/src/client/vnc/vncwindow.cpp
index 34cbab7..2f2b427 100644
--- a/src/client/vnc/vncwindow.cpp
+++ b/src/client/vnc/vncwindow.cpp
@@ -115,7 +115,14 @@ void VncWindow::onProjectionStopped()
////////////////////////////////////////////////////////////////////////////////
// Protected
+void VncWindow::close()
+{
+ if (this->isVisible())
+ QDialog::close();
+ else
+ emit running(false, _clientId);
+}
void VncWindow::timerEvent(QTimerEvent *event)
{
if (event->timerId() == _redrawTimer)