summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2018-07-12 17:14:28 +0200
committerSimon Rettberg2018-07-12 17:14:28 +0200
commit8001b433f79b3f6062100842578521eabf039057 (patch)
treec5561c8711cfd2ae26d2dc670d48652aba5aeb44
parent[server] Add missing icon (diff)
downloadpvs2-8001b433f79b3f6062100842578521eabf039057.tar.gz
pvs2-8001b433f79b3f6062100842578521eabf039057.tar.xz
pvs2-8001b433f79b3f6062100842578521eabf039057.zip
[server] Unconditionally disable vnc server if no clients left
-rw-r--r--src/server/mainwindow/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp
index 8d5bd4a..e442d1d 100644
--- a/src/server/mainwindow/mainwindow.cpp
+++ b/src/server/mainwindow/mainwindow.cpp
@@ -1280,7 +1280,7 @@ void MainWindow::onVncClientStateChange(Client* client)
break;
}
- if ( !(serverHasWatchers || _mode == Mode::Broadcast) ) {
+ if ( !serverHasWatchers ) {
Client* c = getClientFromId(client->projectionSource());
if (c != NULL)
c->stopVncServer();
@@ -1329,7 +1329,7 @@ void MainWindow::onDeleteClient()
if (ret == 1) {
frame->hide();
frame->deleteLater();
- _clientFrames.removeOne(frame);
+ _clientFrames.removeAll(frame);
lockContextButtons();
clientCountChanged();
return;