diff options
author | Simon Rettberg | 2018-07-12 17:14:28 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-07-12 17:14:28 +0200 |
commit | 8001b433f79b3f6062100842578521eabf039057 (patch) | |
tree | c5561c8711cfd2ae26d2dc670d48652aba5aeb44 /src | |
parent | [server] Add missing icon (diff) | |
download | pvs2-8001b433f79b3f6062100842578521eabf039057.tar.gz pvs2-8001b433f79b3f6062100842578521eabf039057.tar.xz pvs2-8001b433f79b3f6062100842578521eabf039057.zip |
[server] Unconditionally disable vnc server if no clients left
Diffstat (limited to 'src')
-rw-r--r-- | src/server/mainwindow/mainwindow.cpp | 4 |
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; |