Skip to content
Snippets Groups Projects
Commit 749f57f3 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlDesigner.StatesEditor: Checking valid index for current state

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