Do not close application when can't open recent file if we have GUI mode
--HG-- branch : feature
This commit is contained in:
parent
88a61513ee
commit
58d2410f11
|
@ -3311,7 +3311,10 @@ bool MainWindow::LoadPattern(const QString &fileName, const QString& customMeasu
|
||||||
qCCritical(vMainWindow, "%s\n\n%s\n\n%s", qUtf8Printable(tr("File error.")),
|
qCCritical(vMainWindow, "%s\n\n%s\n\n%s", qUtf8Printable(tr("File error.")),
|
||||||
qUtf8Printable(e.ErrorMessage()), qUtf8Printable(e.DetailedInformation()));
|
qUtf8Printable(e.ErrorMessage()), qUtf8Printable(e.DetailedInformation()));
|
||||||
Clear();
|
Clear();
|
||||||
qApp->exit(V_EX_NOINPUT);
|
if (not VApplication::CheckGUI())
|
||||||
|
{
|
||||||
|
qApp->exit(V_EX_NOINPUT);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user