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

@ -299,7 +299,14 @@ bool MainWindow::LoadMeasurements(const QString &path)
}
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";
}
delete m;
return false;
}