summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}