diff options
| author | Mat M <mathew1800@gmail.com> | 2019-03-04 17:40:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-04 17:40:27 -0500 |
| commit | 147f7ca3213aef22dfe45bfab86e2d221aa248bf (patch) | |
| tree | b32f19c11585ea4e1b205eb2e959e695636e5a19 /Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp | |
| parent | a59010fa29ab10ca031bea87fc5df165e70e2dff (diff) | |
| parent | 70da86f1c3c933ce28d122f95f34ff6c24f89d80 (diff) | |
Merge pull request #7849 from spycrab/qt_modal_again
Qt: Make every messagebox modal
Diffstat (limited to 'Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp')
| -rw-r--r--[-rwxr-xr-x] | Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp index e320b32347..69295680d0 100755..100644 --- a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp +++ b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp @@ -9,7 +9,6 @@ #include <QHBoxLayout> #include <QLabel> #include <QListWidget> -#include <QMessageBox> #include <QPushButton> #include <QTextEdit> #include <QVBoxLayout> @@ -22,6 +21,7 @@ #include "DolphinQt/Config/CheatCodeEditor.h" #include "DolphinQt/Config/CheatWarningWidget.h" +#include "DolphinQt/QtUtils/ModalMessageBox.h" #include "UICommon/GameFile.h" @@ -255,13 +255,13 @@ void GeckoCodeWidget::DownloadCodes() if (!success) { - QMessageBox::critical(this, tr("Error"), tr("Failed to download codes.")); + ModalMessageBox::critical(this, tr("Error"), tr("Failed to download codes.")); return; } if (codes.empty()) { - QMessageBox::critical(this, tr("Error"), tr("File contained no codes.")); + ModalMessageBox::critical(this, tr("Error"), tr("File contained no codes.")); return; } @@ -281,7 +281,8 @@ void GeckoCodeWidget::DownloadCodes() UpdateList(); SaveCodes(); - QMessageBox::information(this, tr("Download complete"), - tr("Downloaded %1 codes. (added %2)") - .arg(QString::number(codes.size()), QString::number(added_count))); + ModalMessageBox::information( + this, tr("Download complete"), + tr("Downloaded %1 codes. (added %2)") + .arg(QString::number(codes.size()), QString::number(added_count))); } |
