From 70da86f1c3c933ce28d122f95f34ff6c24f89d80 Mon Sep 17 00:00:00 2001 From: spycrab Date: Mon, 4 Mar 2019 20:49:00 +0100 Subject: Qt: Use ModalMessageBox everywhere --- Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) mode change 100755 => 100644 Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp (limited to 'Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp') diff --git a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp old mode 100755 new mode 100644 index e320b32347..69295680d0 --- a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp +++ b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include @@ -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))); } -- cgit v1.2.3