Don't show warning about unsaved change if we have brocken formula.

--HG--
branch : develop
This commit is contained in:
dismine 2014-07-25 13:34:02 +03:00
parent 2ff611b923
commit 1cb1166824

View File

@ -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"