Alex Richardson <> changed:

           What    |Removed                     |Added
      Latest Commit|                            |
                   |                            |sma-integration/bfd41a95530
                   |                            |f90ee8d44cbcfd1fa8c62978334
                   |                            |a2
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED

--- Comment #22 from Alex Richardson <> ---
Git commit bfd41a95530f90ee8d44cbcfd1fa8c62978334a2 by Alex Richardson.
Committed on 08/04/2018 at 10:06.
Pushed by arichardson into branch 'master'.

KDEPlatformFileDialog: Fix initial directory selection for remote files

Previously KDEPlatformFileDialogHelper::selectFile() would change
options()->initialDirectory() unconditionally even if it was already
set by the QFileDialog code. Since Qt 5.7.1 it is no longer necessary
to derive initialDirectory from the selectFile() call. In fact it is
actuall harmful since it will now override the correct initial directory
that was set by Qt. Without this patch I got the following debug output:

KDEPlatformFileDialogHelper::selectFile QUrl("file:///home/alex/")
KDEPlatformFileDialogHelper::setDirectory QUrl("file:///home/alex/)
The final setDirectory() call is actually a call to
`setDirectory(options->initialDirectory())` which was set in `selectFile()`.

We now depend on Qt 5.9 so we can remove this code without a check for
version >= 5.7.1.

Test Plan: Remote directory is now opened correctly (tested with Qt 5.10.0)

Reviewers: #plasma, elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: ngraham, krzyc, anthonyfieroni, elvisangelaccio, graesslin,

Tags: #plasma

Differential Revision:

M  +0    -5    src/platformtheme/kdeplatformfiledialoghelper.cpp

You are receiving this mail because:
You are watching all bug changes.

Reply via email to