Commit 1fcb09c1 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlDesigner.StatesEditor: Fixed crash when creating new state while renaming another state

parent 85d9c555
...@@ -422,6 +422,8 @@ Rectangle { ...@@ -422,6 +422,8 @@ Rectangle {
MouseRegion { MouseRegion {
anchors.fill:parent anchors.fill:parent
onClicked: { onClicked: {
// force close textinput
root.unFocus();
if (root.currentStateIndex == 0) if (root.currentStateIndex == 0)
root.createNewState(); //create new state root.createNewState(); //create new state
else else
......
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