Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
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