diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2016-12-21 14:26:25 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2017-01-04 13:21:20 +0000 |
commit | 8f74cc3b7c1cb1511e42419a0679515e97474aeb (patch) | |
tree | e206589332fa411c9a83c425da9cf19eabc2c586 /share | |
parent | ada5ea19522ecf01dfe52e1170046b7a1be76113 (diff) | |
download | qt-creator-8f74cc3b7c1cb1511e42419a0679515e97474aeb.tar.gz |
QmlDesigner: Avoid second error message
We get editingFinished twice. By checking visible we able to ignore
the second signal.
Change-Id: Ic5ab91e153b1d658a68321436c71b914e065c6dd
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml index 63b9554a26..0b5832796a 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml @@ -90,8 +90,9 @@ Rectangle { fixedSize: true onEditingFinished: { + if (visible) + changeTypeName(typeLineEdit.text.trim()) visible = false - changeTypeName(typeLineEdit.text.trim()) } } |