mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 06:39:33 +00:00
Qt: Use ModalMessageBox everywhere
This commit is contained in:
parent
d1cb79f644
commit
70da86f1c3
31 changed files with 244 additions and 298 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
#include <QApplication>
|
||||
#include <QLocale>
|
||||
#include <QMessageBox>
|
||||
#include <QTranslator>
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
|
@ -20,6 +19,8 @@
|
|||
|
||||
#include "Core/ConfigManager.h"
|
||||
|
||||
#include "DolphinQt/QtUtils/ModalMessageBox.h"
|
||||
|
||||
#include "UICommon/UICommon.h"
|
||||
|
||||
constexpr u32 MO_MAGIC_NUMBER = 0x950412de;
|
||||
|
@ -300,7 +301,7 @@ void Translation::Initialize()
|
|||
if (TryInstallTranslator(QString::fromStdString(configured_language)))
|
||||
return;
|
||||
|
||||
QMessageBox::warning(
|
||||
ModalMessageBox::warning(
|
||||
nullptr, QObject::tr("Error"),
|
||||
QObject::tr("Error loading selected language. Falling back to system default."));
|
||||
configured_language.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue