From d22c770d693ff34e8ec659fed2c74bb0d47ea87b Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Tue, 22 Jul 2014 16:17:05 +0200 Subject: Fix login-lock-bug. Update todolist --- src/server/mainwindow/mainwindow.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/server/mainwindow/mainwindow.cpp') diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp index 7c484bb..3365473 100644 --- a/src/server/mainwindow/mainwindow.cpp +++ b/src/server/mainwindow/mainwindow.cpp @@ -1078,11 +1078,14 @@ void MainWindow::onVncServerStateChange(Client* client) } } } - // If this was the current source remember that there is no source anymore - if (client == getClientFromId(_streamingSource)) - _streamingSource = NO_SOURCE; // Dont forget to unlock the vnc server (if necesarry) client->lockScreen(client->desiredProjectionSource() == NO_SOURCE && _mode == Mode::LockedUnicast); + + // If this was the current source remember that there is no source anymore and reset mode + if (client == getClientFromId(_streamingSource)){ + _streamingSource = NO_SOURCE; + _mode = Mode::None; + } } } -- cgit v1.2.3-55-g7522