From 1ba810901da92b23d90f7f3ada42c58b7349fb11 Mon Sep 17 00:00:00 2001 From: spycrab Date: Sun, 3 Mar 2019 16:19:50 +0100 Subject: [PATCH] Qt/MappingWindow: Make message boxes modal --- Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp index c1a5a034ee..549122d0db 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp @@ -161,6 +161,7 @@ void MappingWindow::OnDeleteProfilePressed() { QMessageBox error(this); error.setIcon(QMessageBox::Critical); + error.setWindowModality(Qt::WindowModal); error.setWindowTitle(tr("Error")); error.setText(tr("The profile '%1' does not exist").arg(profile_name)); error.exec(); @@ -170,6 +171,7 @@ void MappingWindow::OnDeleteProfilePressed() QMessageBox confirm(this); confirm.setIcon(QMessageBox::Warning); + confirm.setWindowModality(Qt::WindowModal); confirm.setWindowTitle(tr("Confirm")); confirm.setText(tr("Are you sure that you want to delete '%1'?").arg(profile_name)); confirm.setInformativeText(tr("This cannot be undone!")); @@ -186,6 +188,7 @@ void MappingWindow::OnDeleteProfilePressed() QMessageBox result(this); result.setIcon(QMessageBox::Information); + result.setWindowModality(Qt::WindowModal); result.setWindowTitle(tr("Success")); result.setText(tr("Successfully deleted '%1'.").arg(profile_name)); }