Enable Save button only if document is modified.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-02-08 12:12:10 +02:00
parent 5edc241426
commit 2b7851f354

View File

@ -2811,7 +2811,7 @@ void MainWindow::SetEnableWidgets(bool enable)
comboBoxDraws->setEnabled(enable && drawStage);
ui->actionOptionDraw->setEnabled(enable && drawStage);
ui->actionSave->setEnabled(enable && not patternReadOnly);
ui->actionSave->setEnabled(isWindowModified() && enable && not patternReadOnly);
ui->actionSaveAs->setEnabled(enable);
ui->actionPattern_properties->setEnabled(enable && designStage);
ui->actionZoomIn->setEnabled(enable);