diff options
Diffstat (limited to 'Source/Core/DolphinQt/Config/ControllersWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/ControllersWindow.cpp | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/Source/Core/DolphinQt/Config/ControllersWindow.cpp b/Source/Core/DolphinQt/Config/ControllersWindow.cpp index fbedd80b03..75d99495a8 100644 --- a/Source/Core/DolphinQt/Config/ControllersWindow.cpp +++ b/Source/Core/DolphinQt/Config/ControllersWindow.cpp @@ -14,7 +14,6 @@ #include <QGroupBox> #include <QLabel> #include <QLineEdit> -#include <QMessageBox> #include <QPushButton> #include <QRadioButton> #include <QScreen> @@ -34,6 +33,7 @@ #include "DolphinQt/Config/Mapping/GCPadWiiUConfigDialog.h" #include "DolphinQt/Config/Mapping/MappingWindow.h" +#include "DolphinQt/QtUtils/ModalMessageBox.h" #include "DolphinQt/QtUtils/WrapInScrollArea.h" #include "DolphinQt/Settings.h" @@ -328,12 +328,9 @@ void ControllersWindow::OnBluetoothPassthroughResetPressed() if (!ios) { - QMessageBox error(this); - error.setIcon(QMessageBox::Warning); - error.setWindowModality(Qt::WindowModal); - error.setWindowTitle(tr("Warning")); - error.setText(tr("Saved Wii Remote pairings can only be reset when a Wii game is running.")); - error.exec(); + ModalMessageBox::warning( + this, tr("Warning"), + tr("Saved Wii Remote pairings can only be reset when a Wii game is running.")); return; } @@ -350,12 +347,8 @@ void ControllersWindow::OnBluetoothPassthroughSyncPressed() if (!ios) { - QMessageBox error(this); - error.setIcon(QMessageBox::Warning); - error.setWindowModality(Qt::WindowModal); - error.setWindowTitle(tr("Warning")); - error.setText(tr("A sync can only be triggered when a Wii game is running.")); - error.exec(); + ModalMessageBox::warning(this, tr("Warning"), + tr("A sync can only be triggered when a Wii game is running.")); return; } |
