Fix: File Path Chooser only opens once (#48)

This commit is contained in:
Ilya Kitaev
2016-09-05 22:42:05 +03:00
parent 3280fe389a
commit 85787c3e14

View File

@@ -207,13 +207,16 @@ Item {
selectByMouse: true selectByMouse: true
text: moneroAccountsDir + "/" text: moneroAccountsDir + "/"
onFocusChanged: { // workaround for the bug "filechooser only opens once"
if(focus) { MouseArea {
fileDialog.folder = text anchors.fill: parent
onClicked: {
mouse.accepted = false
fileDialog.folder = walletManager.localPathToUrl(fileUrlInput.text)
fileDialog.open() fileDialog.open()
fileUrlInput.focus = true
} }
} }
} }
Rectangle { Rectangle {