Added check when error shown for the wrong file name

--HG--
branch : develop
This commit is contained in:
Alex 2015-08-27 22:27:37 +03:00
parent f4b4c6011f
commit 4b5250209c

View File

@ -3111,7 +3111,10 @@ void MainWindow::LoadPattern(const QString &fileName, const QString& customMeasu
}
catch (VException &e)
{
if (qApp->CheckGUI())
e.CriticalMessageBox(tr("File error."), this);
else
vStdErr() << tr("File error.") << e.MoreInformation() << "\n";
Clear();
return;
}