From 03f8d721db0fa872cfadad2e7418b1abbaa3a61a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 1 Aug 2018 17:48:09 +0200 Subject: [server] Fix message box when deleting client --- src/server/mainwindow/mainwindow.cpp | 6 +++--- 1 file 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); -- cgit v1.2.3-55-g7522