From 1cb1166824baab0d947f6d576d3e621fc746b5a6 Mon Sep 17 00:00:00 2001 From: dismine Date: Fri, 25 Jul 2014 13:34:02 +0300 Subject: [PATCH] Don't show warning about unsaved change if we have brocken formula. --HG-- branch : develop --- src/app/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/mainwindow.cpp b/src/app/mainwindow.cpp index 59688e346..bf011187b 100644 --- a/src/app/mainwindow.cpp +++ b/src/app/mainwindow.cpp @@ -2028,7 +2028,7 @@ void MainWindow::WriteSettings() */ bool MainWindow::MaybeSave() { - if (this->isWindowModified()) + if (this->isWindowModified() && guiEnabled) { QMessageBox::StandardButton ret; ret = QMessageBox::warning(this, tr("Unsaved change"), tr("The pattern has been modified.\n"