summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2018-08-01 17:48:09 +0200
committerSimon Rettberg2018-08-01 17:48:09 +0200
commit03f8d721db0fa872cfadad2e7418b1abbaa3a61a (patch)
treef25d2924d2eda372eb39946cbf27b4487889e189
parent[server] Allow setting offline client as tutor (diff)
downloadpvs2-03f8d721db0fa872cfadad2e7418b1abbaa3a61a.tar.gz
pvs2-03f8d721db0fa872cfadad2e7418b1abbaa3a61a.tar.xz
pvs2-03f8d721db0fa872cfadad2e7418b1abbaa3a61a.zip
[server] Fix message box when deleting client
-rw-r--r--src/server/mainwindow/mainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp
index b4206c8..e23e755 100644
--- a/src/server/mainwindow/mainwindow.cpp
+++ b/src/server/mainwindow/mainwindow.cpp
@@ -1297,9 +1297,9 @@ void MainWindow::onDeleteClient()
QMessageBox::critical(this, tr("Selection"), tr("This client is still connected."));
return;
}
- qDebug() << "Now delete the client";
- int ret = QMessageBox::question(this, "Warning", tr("Sure, You want to delete selected client?"), 0, 1, 2);
- if (ret == 1) {
+ QMessageBox::StandardButton ret = QMessageBox::question(this, tr("Warning"), tr("Are you sure you want to delete the selected client?"),
+ QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
+ if (ret == QMessageBox::Yes) {
frame->hide();
frame->deleteLater();
_clientFrames.removeAll(frame);