summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/ConvertDialog.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2020-06-16 10:39:40 +0200
committerJosJuice <josjuice@gmail.com>2020-06-16 10:39:40 +0200
commit20a3119d7a29c5014f6f0d681eda6a8b6dc31f04 (patch)
tree5957db101d3671389bcf4ff0aacdd66e957ac10d /Source/Core/DolphinQt/ConvertDialog.cpp
parent2b25e1d6b9360c8ac5e68284f4628a54584f2ac2 (diff)
DolphinQt: Make conversion error messages actually show up
I don't know why QErrorMessage doesn't work, but ModalMessageBox works, so let's use ModalMessageBox.
Diffstat (limited to 'Source/Core/DolphinQt/ConvertDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/ConvertDialog.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/ConvertDialog.cpp b/Source/Core/DolphinQt/ConvertDialog.cpp
index 3e98c813f0..aa0a519c26 100644
--- a/Source/Core/DolphinQt/ConvertDialog.cpp
+++ b/Source/Core/DolphinQt/ConvertDialog.cpp
@@ -12,7 +12,6 @@
#include <QCheckBox>
#include <QComboBox>
-#include <QErrorMessage>
#include <QFileDialog>
#include <QGridLayout>
#include <QGroupBox>
@@ -329,7 +328,8 @@ void ConvertDialog::Convert()
if (!blob_reader)
{
- QErrorMessage(this).showMessage(
+ ModalMessageBox::critical(
+ this, tr("Error"),
tr("Failed to open the input file \"%1\".").arg(QString::fromStdString(original_path)));
return;
}
@@ -362,7 +362,8 @@ void ConvertDialog::Convert()
progress_dialog.GetRaw()->exec();
if (!good.get())
{
- QErrorMessage(this).showMessage(tr("Dolphin failed to complete the requested action."));
+ ModalMessageBox::critical(this, tr("Error"),
+ tr("Dolphin failed to complete the requested action."));
return;
}
}