From 85787c3e14e9c69d9b9438c180332b22ce9a6550 Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Mon, 5 Sep 2016 22:42:05 +0300 Subject: [PATCH] Fix: File Path Chooser only opens once (#48) --- wizard/WizardManageWalletUI.qml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/wizard/WizardManageWalletUI.qml b/wizard/WizardManageWalletUI.qml index 44d3c5fd..cc8a5be3 100644 --- a/wizard/WizardManageWalletUI.qml +++ b/wizard/WizardManageWalletUI.qml @@ -207,13 +207,16 @@ Item { selectByMouse: true text: moneroAccountsDir + "/" - onFocusChanged: { - if(focus) { - fileDialog.folder = text + // workaround for the bug "filechooser only opens once" + MouseArea { + anchors.fill: parent + onClicked: { + mouse.accepted = false + fileDialog.folder = walletManager.localPathToUrl(fileUrlInput.text) fileDialog.open() + fileUrlInput.focus = true } } - } Rectangle {