aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2011-08-04 14:21:58 +0200
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2011-08-04 14:30:03 +0200
commit867178cf681b85dbffbb1a7bb0469719d583dc47 (patch)
treeef65f6e4cb527d5176f685959ab66bd03168e1eb /src/plugins/qmldesigner/components/stateseditor/stateslist.qml
parent7c31bd660454bcf473012ac1f86f4bb4d4b038e7 (diff)
QmlDesigner.statesEditor: crashfix for focus handling
Ignore changes to the TextEdit if focus gets lost. Reason: an error message (illegal state name) would lead to a crash. For details see the task. Task-Number: QTCREATORBUG-5729 Change-Id: I0f0ad7a416ba59d958b3ae5d8809ccb51f42fe5e Reviewed-on: http://codereview.qt.nokia.com/2624 Reviewed-by: Marco Bubke <marco.bubke@nokia.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Diffstat (limited to 'src/plugins/qmldesigner/components/stateseditor/stateslist.qml')
-rw-r--r--src/plugins/qmldesigner/components/stateseditor/stateslist.qml1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/stateseditor/stateslist.qml b/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
index 924258029e..a379302902 100644
--- a/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
+++ b/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
@@ -255,7 +255,6 @@ Rectangle {
function unFocus() {
if (visible) {
visible=false;
- statesEditorModel.renameState(nodeId, stateNameInput.text);
}
}