Commit 749f57f3 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlDesigner.StatesEditor: Checking valid index for current state

parent dc859db1
......@@ -35,7 +35,9 @@ Rectangle {
hoverEnabled:true
onExited: root.unFocus();
}
onCurrentStateIndexChanged: unFocus();
onCurrentStateIndexChanged: {
if (currentStateIndex<0) currentStateIndex=0; else unFocus();
}
// Colors
SystemPalette { id:systemPalette; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment