Added check when error shown for the wrong file name
--HG-- branch : develop
This commit is contained in:
parent
f4b4c6011f
commit
4b5250209c
|
@ -3111,7 +3111,10 @@ void MainWindow::LoadPattern(const QString &fileName, const QString& customMeasu
|
|||
}
|
||||
catch (VException &e)
|
||||
{
|
||||
e.CriticalMessageBox(tr("File error."), this);
|
||||
if (qApp->CheckGUI())
|
||||
e.CriticalMessageBox(tr("File error."), this);
|
||||
else
|
||||
vStdErr() << tr("File error.") << e.MoreInformation() << "\n";
|
||||
Clear();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user