diff options
author | Manuel Schneider | 2014-07-22 16:17:05 +0200 |
---|---|---|
committer | Manuel Schneider | 2014-07-22 16:17:05 +0200 |
commit | d22c770d693ff34e8ec659fed2c74bb0d47ea87b (patch) | |
tree | bbbceba1c0429ab92cec1229feb12a149c889324 /src/server/mainwindow/mainwindow.cpp | |
parent | Fix oneclick-source-change-lock-bug (diff) | |
download | pvs2-d22c770d693ff34e8ec659fed2c74bb0d47ea87b.tar.gz pvs2-d22c770d693ff34e8ec659fed2c74bb0d47ea87b.tar.xz pvs2-d22c770d693ff34e8ec659fed2c74bb0d47ea87b.zip |
Fix login-lock-bug. Update todolist
Diffstat (limited to 'src/server/mainwindow/mainwindow.cpp')
-rw-r--r-- | src/server/mainwindow/mainwindow.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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; + } } } |