summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2020-11-06 12:12:56 +0100
committerAndy Shaw <andy.shaw@qt.io>2020-11-10 13:55:34 +0100
commitcf3f6d7fec824cdf01f9b329ab3b92b1c0e0a420 (patch)
tree00253a846e5382246df16784a410bf7f71be5618
parentdaedf29891225170d9bf4be182231ab399bba5a1 (diff)
downloadqtquickcontrols-cf3f6d7fec824cdf01f9b329ab3b92b1c0e0a420.tar.gz
Convert the path to a url correctly
Just adding file:// is not enough if it is a Windows file path as it will cause it to lose the drive information as a result. So use the function available to get this correctly. Change-Id: I9927a8a67b1743c24cd317bea9ebf5e174b77604 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--src/dialogs/DefaultFileDialog.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dialogs/DefaultFileDialog.qml b/src/dialogs/DefaultFileDialog.qml
index 077b5acd..ea2fa42d 100644
--- a/src/dialogs/DefaultFileDialog.qml
+++ b/src/dialogs/DefaultFileDialog.qml
@@ -115,7 +115,7 @@ AbstractFileDialog {
function dirDown(path) {
view.selection.clear()
- root.folder = "file://" + path
+ root.folder = root.pathToUrl(path)
}
function dirUp() {
view.selection.clear()