[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - vcl/qt5

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Feb 5 12:36:42 UTC 2019


 vcl/qt5/Qt5FilePicker.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 02af5f92e9938c6370fbcaa40f399234d128be54
Author:     Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Tue Feb 5 08:40:33 2019 +0100
Commit:     Katarina Behrens <Katarina.Behrens at cib.de>
CommitDate: Tue Feb 5 13:36:19 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.weghorn at posteo.de>
    (cherry picked from commit 7029597034363c301727a3d16bd394c27a379796)
    Reviewed-on: https://gerrit.libreoffice.org/67393
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.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()


More information about the Libreoffice-commits mailing list