Enable Save button only if document is modified.
--HG-- branch : develop
This commit is contained in:
parent
5edc241426
commit
2b7851f354
|
@ -2811,7 +2811,7 @@ void MainWindow::SetEnableWidgets(bool enable)
|
||||||
|
|
||||||
comboBoxDraws->setEnabled(enable && drawStage);
|
comboBoxDraws->setEnabled(enable && drawStage);
|
||||||
ui->actionOptionDraw->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->actionSaveAs->setEnabled(enable);
|
||||||
ui->actionPattern_properties->setEnabled(enable && designStage);
|
ui->actionPattern_properties->setEnabled(enable && designStage);
|
||||||
ui->actionZoomIn->setEnabled(enable);
|
ui->actionZoomIn->setEnabled(enable);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user