aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
+ }
}
}