mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 23:08:47 +00:00
Qt: Use ModalMessageBox everywhere
This commit is contained in:
parent
d1cb79f644
commit
70da86f1c3
31 changed files with 244 additions and 298 deletions
|
@ -10,7 +10,6 @@
|
|||
#include <QFormLayout>
|
||||
#include <QGroupBox>
|
||||
#include <QLabel>
|
||||
#include <QMessageBox>
|
||||
#include <QVBoxLayout>
|
||||
#include <QWidget>
|
||||
|
||||
|
@ -24,6 +23,7 @@
|
|||
#include "Core/ConfigManager.h"
|
||||
|
||||
#include "DolphinQt/GameList/GameListModel.h"
|
||||
#include "DolphinQt/QtUtils/ModalMessageBox.h"
|
||||
#include "DolphinQt/Settings.h"
|
||||
|
||||
#include "UICommon/GameFile.h"
|
||||
|
@ -269,12 +269,9 @@ void InterfacePane::OnSaveConfig()
|
|||
if (new_language != SConfig::GetInstance().m_InterfaceLanguage)
|
||||
{
|
||||
SConfig::GetInstance().m_InterfaceLanguage = new_language;
|
||||
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();
|
||||
ModalMessageBox::information(
|
||||
this, tr("Restart Required"),
|
||||
tr("You must restart Dolphin in order for the change to take effect."));
|
||||
}
|
||||
|
||||
const bool use_covers = m_checkbox_use_covers->isChecked();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue