From 606c61e7c98714acd8158dff207b4e9eef852670 Mon Sep 17 00:00:00 2001 From: spycrab Date: Sun, 3 Mar 2019 16:05:07 +0100 Subject: [PATCH] Settings/InterfacePane: Make message box modal --- Source/Core/DolphinQt/Settings/InterfacePane.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt/Settings/InterfacePane.cpp b/Source/Core/DolphinQt/Settings/InterfacePane.cpp index ad808e9f08..747f185bbe 100644 --- a/Source/Core/DolphinQt/Settings/InterfacePane.cpp +++ b/Source/Core/DolphinQt/Settings/InterfacePane.cpp @@ -269,9 +269,12 @@ void InterfacePane::OnSaveConfig() if (new_language != SConfig::GetInstance().m_InterfaceLanguage) { SConfig::GetInstance().m_InterfaceLanguage = new_language; - QMessageBox::information( - this, tr("Restart Required"), - tr("You must restart Dolphin in order for the change to take effect.")); + QMessageBox msg(QMessageBox::Information, tr("Restart Required"), + tr("You must restart Dolphin in order for the change to take effect."), + QMessageBox::Ok, this); + + msg.setWindowModality(Qt::WindowModal); + msg.exec(); } const bool use_covers = m_checkbox_use_covers->isChecked();