aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2023-11-24 15:36:40 +0200
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2023-11-24 13:40:37 +0000
commite1d450bcaf029ee5937e7ca3b493dcc529954dcc (patch)
treeb8c42ad31207b1028ad077477f78862a667b6518
parent9affb29ddb79b86f15ea41b90866258f1eedecdc (diff)
EffectMaker: Don't allow saving with pressing enter if save is disabled
Fixes: QDS-11392 Change-Id: Ia600489b39d58a0224f17856f9ab6e2110faee82 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
-rw-r--r--share/qtcreator/qmldesigner/effectMakerQmlSources/SaveDialog.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/share/qtcreator/qmldesigner/effectMakerQmlSources/SaveDialog.qml b/share/qtcreator/qmldesigner/effectMakerQmlSources/SaveDialog.qml
index 8bd48e1d6c..60ddae3545 100644
--- a/share/qtcreator/qmldesigner/effectMakerQmlSources/SaveDialog.qml
+++ b/share/qtcreator/qmldesigner/effectMakerQmlSources/SaveDialog.qml
@@ -83,8 +83,10 @@ StudioControls.Dialog {
text: qsTr("Save")
enabled: nameText.text !== ""
onClicked: {
- root.compositionName = nameText.text
- root.accept() //TODO: Check if name is unique
+ if (btnSave.enabled) {
+ root.compositionName = nameText.text
+ root.accept() //TODO: Check if name is unique
+ }
}
}