vcl/qt5/Qt5FilePicker.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 7029597034363c301727a3d16bd394c27a379796 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Tue Feb 5 08:40:33 2019 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Tue Feb 5 11:00:26 2019 +0100 qt5 fpicker: Fix initial directory selection This takes over the fix from the KDE5FilePicker from commit 1af4ab72e2488515fcaedeb4a377ee070d68a495 for the qt5 one. Change-Id: Ibe34ecff9913fc91df2b9bd25b559375bab0ff83 Reviewed-on: https://gerrit.libreoffice.org/67385 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/vcl/qt5/Qt5FilePicker.cxx b/vcl/qt5/Qt5FilePicker.cxx index ffd482ded5d0..7817f4de0488 100644 --- a/vcl/qt5/Qt5FilePicker.cxx +++ b/vcl/qt5/Qt5FilePicker.cxx @@ -249,7 +249,9 @@ void SAL_CALL Qt5FilePicker::setDisplayDirectory(const OUString& dir) SolarMutexReleaser aReleaser; return Q_EMIT setDisplayDirectorySignal(dir); } - m_pFileDialog->setDirectory(toQString(dir)); + + QString qDir(toQString(dir)); + m_pFileDialog->setDirectoryUrl(QUrl(qDir)); } OUString SAL_CALL Qt5FilePicker::getDisplayDirectory() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits