mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-29 01:20:28 +00:00
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.
This commit is contained in:
parent
2b25e1d6b9
commit
20a3119d7a
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user