From f87d0e66422444852dd05fba887e2f176b50002c Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 27 Aug 2015 23:11:09 +0300 Subject: [PATCH] 1 more gui message removed when vit file is present but invalid --HG-- branch : develop --- src/app/valentina/mainwindow.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 65c38a29f..e3f443708 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -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; }