From 85c362a809c431a4a99abc5ef9afc3d8d7646224 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 1 Aug 2018 17:39:31 +0200 Subject: [server] Allow setting offline client as tutor Closes #3397 --- src/server/mainwindow/mainwindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 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); } -- cgit v1.2.3-55-g7522