aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
diff options
context:
space:
mode:
authorChristiaan Janssen <christiaan.janssen@nokia.com>2010-02-15 16:00:44 +0100
committerChristiaan Janssen <christiaan.janssen@nokia.com>2010-02-15 16:00:53 +0100
commit749f57f356342e0f96896bbbdba5ee0d9fa8403e (patch)
tree2fc80eed4152b03ec787de5a1197553200c005f3 /src/plugins/qmldesigner/components/stateseditor/stateslist.qml
parentdc859db169e171eb17f251f038c7ea026b8c86da (diff)
QmlDesigner.StatesEditor: Checking valid index for current state
Diffstat (limited to 'src/plugins/qmldesigner/components/stateseditor/stateslist.qml')
-rw-r--r--src/plugins/qmldesigner/components/stateseditor/stateslist.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/stateseditor/stateslist.qml b/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
index a558fbc756..640fb695a3 100644
--- a/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
+++ b/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
@@ -35,7 +35,9 @@ Rectangle {
hoverEnabled:true
onExited: root.unFocus();
}
- onCurrentStateIndexChanged: unFocus();
+ onCurrentStateIndexChanged: {
+ if (currentStateIndex<0) currentStateIndex=0; else unFocus();
+ }
// Colors
SystemPalette { id:systemPalette; }