mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Qt: Use ModalMessageBox everywhere
This commit is contained in:
@ -12,7 +12,6 @@
|
||||
#include <QGroupBox>
|
||||
#include <QInputDialog>
|
||||
#include <QLabel>
|
||||
#include <QMessageBox>
|
||||
#include <QPushButton>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
@ -29,6 +28,7 @@
|
||||
#include "Core/HW/GCMemcard/GCMemcard.h"
|
||||
|
||||
#include "DolphinQt/Config/Mapping/MappingWindow.h"
|
||||
#include "DolphinQt/QtUtils/ModalMessageBox.h"
|
||||
|
||||
enum
|
||||
{
|
||||
@ -216,10 +216,10 @@ void GameCubePane::OnConfigPressed(int slot)
|
||||
|
||||
if (!mc.IsValid())
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"),
|
||||
tr("Cannot use that file as a memory card.\n%1\n"
|
||||
"is not a valid GameCube memory card file")
|
||||
.arg(filename));
|
||||
ModalMessageBox::critical(this, tr("Error"),
|
||||
tr("Cannot use that file as a memory card.\n%1\n"
|
||||
"is not a valid GameCube memory card file")
|
||||
.arg(filename));
|
||||
|
||||
return;
|
||||
}
|
||||
@ -237,7 +237,8 @@ void GameCubePane::OnConfigPressed(int slot)
|
||||
|
||||
if (path_abs == path_b)
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), tr("The same file can't be used in both slots."));
|
||||
ModalMessageBox::critical(this, tr("Error"),
|
||||
tr("The same file can't be used in both slots."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user