Merge pull request #8877 from JosJuice/convert-fail-message
DolphinQt: Make conversion error messages actually show up
This commit is contained in:
commit
d4418a2b43
|
@ -12,7 +12,6 @@
|
||||||
|
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QErrorMessage>
|
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QGridLayout>
|
#include <QGridLayout>
|
||||||
#include <QGroupBox>
|
#include <QGroupBox>
|
||||||
|
@ -329,8 +328,10 @@ void ConvertDialog::Convert()
|
||||||
|
|
||||||
if (!blob_reader)
|
if (!blob_reader)
|
||||||
{
|
{
|
||||||
QErrorMessage(this).showMessage(
|
ModalMessageBox::critical(
|
||||||
|
this, tr("Error"),
|
||||||
tr("Failed to open the input file \"%1\".").arg(QString::fromStdString(original_path)));
|
tr("Failed to open the input file \"%1\".").arg(QString::fromStdString(original_path)));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -361,7 +362,8 @@ void ConvertDialog::Convert()
|
||||||
progress_dialog.GetRaw()->exec();
|
progress_dialog.GetRaw()->exec();
|
||||||
if (!good.get())
|
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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue