https://bugs.kde.org/show_bug.cgi?id=402077
Bernhard Rosenkränzer <b...@lindev.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #19 from Bernhard Rosenkränzer <b...@lindev.ch> --- The problem is that, at least here, with Qt 5.12.0, QFileDialog::setDirectoryUrl() expects a "real" URL and doesn't work if it's passed a QUrl with an empty scheme (such as QUrl(currentName) if currentName is a local file name). Everything starts working correctly if I change the code to use QFileDialog::setDirectory() instead of QFileDialog::setDirectoryUrl(), or if I use QUrl("file:" + currentFolder) in place of QUrl(currentFolder). Of course that will break things if currentFolder is remote, or is already a file: URL -- not sure if this can happen. Will attach a patch with some safety checks, but if you know it's always a local directory name, one of the workarounds I've already mentioned is sufficient. -- You are receiving this mail because: You are watching all bug changes.