resolvedUrl is unexpectedly prefixed
-
Hi,
I am confused by behaviour of Qt.resolvedUrl function.
I have added following code to two places in my source code (the same application). In first case it prints expected value. Second time is 'usr' added into the path.Component.onCompleted: { console.log(Qt.resolvedUrl("/")); }
When I add it here, the produced output is expected:
https://github.com/nemomobile-ux/glacier-settings/blob/0529b434afb54cb0c136ee1e5515fb5ea33d795d/src/qml/glacier-settings.qml#L201qml: file://
Here it produces unexpected output:
https://github.com/nemomobile-ux/glacier-settings/blob/0529b434afb54cb0c136ee1e5515fb5ea33d795d/src/plugins/about/about.qml#L200qml: file://usr/
I was checking if there is some context settings, but code goes to deep for me. Have anyone seen this kind behaviour. What is causing it? How can I fix it?
By the way the issue occurs inside of plugin.