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/FilesystemWidget.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/FilesystemWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/FilesystemWidget.cpp | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/Source/Core/DolphinQt/Config/FilesystemWidget.cpp b/Source/Core/DolphinQt/Config/FilesystemWidget.cpp index 8f274c3bf9..3ff72d8e06 100644 --- a/Source/Core/DolphinQt/Config/FilesystemWidget.cpp +++ b/Source/Core/DolphinQt/Config/FilesystemWidget.cpp @@ -10,7 +10,6 @@ #include <QFileInfo> #include <QHeaderView> #include <QMenu> -#include <QMessageBox> #include <QProgressDialog> #include <QStandardItemModel> #include <QStyleFactory> @@ -23,6 +22,7 @@ #include "DiscIO/Filesystem.h" #include "DiscIO/Volume.h" +#include "DolphinQt/QtUtils/ModalMessageBox.h" #include "DolphinQt/Resources.h" #include "UICommon/UICommon.h" @@ -199,9 +199,10 @@ void FilesystemWidget::ShowContextMenu(const QPoint&) return; if (ExtractSystemData(partition, folder)) - QMessageBox::information(this, tr("Success"), tr("Successfully extracted system data.")); + ModalMessageBox::information(this, tr("Success"), + tr("Successfully extracted system data.")); else - QMessageBox::critical(this, tr("Error"), tr("Failed to extract system data.")); + ModalMessageBox::critical(this, tr("Error"), tr("Failed to extract system data.")); }); } @@ -323,9 +324,9 @@ void FilesystemWidget::ExtractFile(const DiscIO::Partition& partition, const QSt *m_volume, partition, filesystem->FindFileInfo(path.toStdString()).get(), out.toStdString()); if (success) - QMessageBox::information(this, tr("Success"), tr("Successfully extracted file.")); + ModalMessageBox::information(this, tr("Success"), tr("Successfully extracted file.")); else - QMessageBox::critical(this, tr("Error"), tr("Failed to extract file.")); + ModalMessageBox::critical(this, tr("Error"), tr("Failed to extract file.")); } void FilesystemWidget::CheckIntegrity(const DiscIO::Partition& partition) @@ -348,10 +349,14 @@ void FilesystemWidget::CheckIntegrity(const DiscIO::Partition& partition) dialog->close(); if (is_valid.get()) - QMessageBox::information(this, tr("Success"), - tr("Integrity check completed. No errors have been found.")); + { + ModalMessageBox::information(this, tr("Success"), + tr("Integrity check completed. No errors have been found.")); + } else - QMessageBox::critical(this, tr("Error"), - tr("Integrity check for partition failed. The disc image is most " - "likely corrupted or has been patched incorrectly.")); + { + ModalMessageBox::critical(this, tr("Error"), + tr("Integrity check for partition failed. The disc image is most " + "likely corrupted or has been patched incorrectly.")); + } } |
