diff options
Diffstat (limited to 'src/server/mainwindow/mainwindow.cpp')
-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; |