Skip to content

Commit

Permalink
Merge pull request dolphin-emu#8877 from JosJuice/convert-fail-message
Browse files Browse the repository at this point in the history
DolphinQt: Make conversion error messages actually show up
  • Loading branch information
Tilka authored Jun 16, 2020
2 parents 2678916 + 20a3119 commit d4418a2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source/Core/DolphinQt/ConvertDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#include <QCheckBox>
#include <QComboBox>
#include <QErrorMessage>
#include <QFileDialog>
#include <QGridLayout>
#include <QGroupBox>
Expand Down Expand Up @@ -329,8 +328,10 @@ 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;
}
else
{
Expand Down Expand Up @@ -361,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;
}
}
Expand Down

0 comments on commit d4418a2

Please sign in to comment.