From 505e938949a30f2dd63332162ac21dad8874365b Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 27 Aug 2015 22:53:03 +0300 Subject: [PATCH] Added message to console when measure not found --HG-- branch : develop --- src/app/valentina/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 26a0c6c29..0093eda05 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -3296,6 +3296,12 @@ QString MainWindow::CheckPathToMeasurements(const QString &patternPath, const QS QFileInfo table(path); if (table.exists() == false) { + if (!qApp->CheckGUI()) + { + vStdErr() << tr("The measurements file \"") << path << tr("\" could not be found.\n"); + return QString(); + } + QString text = tr("The measurements file

%1

%3").arg(path) .arg(tr("could not be found. Do you want to update the file location")); QMessageBox::StandardButton res = QMessageBox::question(this, "Loading measurements file", text,