summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2018-08-01 17:39:31 +0200
committerSimon Rettberg2018-08-01 17:39:31 +0200
commit85c362a809c431a4a99abc5ef9afc3d8d7646224 (patch)
tree267c438f26167c4c698e938f24d1b3e3f142d7ff
parent[server] Fix exit button confirmation MessageBox (diff)
downloadpvs2-85c362a809c431a4a99abc5ef9afc3d8d7646224.tar.gz
pvs2-85c362a809c431a4a99abc5ef9afc3d8d7646224.tar.xz
pvs2-85c362a809c431a4a99abc5ef9afc3d8d7646224.zip
[server] Allow setting offline client as tutor
Closes #3397
-rw-r--r--src/server/mainwindow/mainwindow.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp
index 5e703a1..b4206c8 100644
--- a/src/server/mainwindow/mainwindow.cpp
+++ b/src/server/mainwindow/mainwindow.cpp
@@ -1064,10 +1064,7 @@ void MainWindow::onButtonSetAsTutor()
}
// If frame of inactive client has been selected unselect it
- if (getSelectedFrame()->client() == nullptr) {
- QMessageBox::critical(this, tr("Selection"), tr("The selected client is not connected."));
- return;
- } else { // If selected client is locked, first unlock
+ if (getSelectedFrame()->client() != nullptr) {
getSelectedFrame()->client()->lockScreen(false);
}