diff --git a/components/InputDialog.qml b/components/InputDialog.qml index 6267708cf2..82e88cb5e3 100644 --- a/components/InputDialog.qml +++ b/components/InputDialog.qml @@ -37,7 +37,8 @@ import "../components" as MoneroComponents Item { id: root - visible: false + visible: opened + property bool opened: false property alias labelText: label.text property alias inputText: input.text @@ -49,7 +50,7 @@ Item { leftPanel.enabled = false middlePanel.enabled = false titleBar.state = "essentials" - root.visible = true; + root.opened = true; input.focus = true; input.text = prepopulate ? prepopulate : ""; } @@ -58,7 +59,7 @@ Item { leftPanel.enabled = true middlePanel.enabled = true titleBar.state = "default" - root.visible = false; + root.opened = false; } ColumnLayout { diff --git a/main.qml b/main.qml index 80d20dd1c0..8a4a453a22 100644 --- a/main.qml +++ b/main.qml @@ -1529,7 +1529,7 @@ ApplicationWindow { InputDialog { id: inputDialog - visible: false + visible: opened && !passwordDialog.visible z: parent.z + 1 anchors.fill: parent property var onAcceptedCallback