1 more gui message removed when vit file is present but invalid

--HG--
branch : develop
This commit is contained in:
Alex 2015-08-27 23:11:09 +03:00
parent f5d5c9fd57
commit f87d0e6642

View File

@ -298,8 +298,15 @@ bool MainWindow::LoadMeasurements(const QString &path)
delete m;
}
catch (VException &e)
{
if (qApp->CheckGUI())
{
e.CriticalMessageBox(tr("File error."), this);
}
else
{
vStdErr() << tr("File error: ")<< e.MoreInformation() <<"\n";
}
delete m;
return false;
}