diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-08-10 14:36:00 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-08-12 22:29:20 +0200 |
commit | 87a4623a8dd5c9efed8335bb56145b9ea9dcce36 (patch) | |
tree | ad67e34ea28598a5657fa0358ddc912de8264d2e /vcl | |
parent | 0adebdf09faa31c8f25415b6a8af415615d42e42 (diff) |
tdf#119133: Fix initial file and folder selection
what d7fc00e1f7ab7a44e6102a and 1af4ab72e2488515fcaede already does
for kde5
Change-Id: I924bdc5cfd6a12ff7bdbeef36d606c03307cb99b
Reviewed-on: https://gerrit.libreoffice.org/58832
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3_kde5/kde5_filepicker.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/unx/gtk3_kde5/kde5_filepicker.cxx b/vcl/unx/gtk3_kde5/kde5_filepicker.cxx index f3b48b837836..e5bdd7e2646c 100644 --- a/vcl/unx/gtk3_kde5/kde5_filepicker.cxx +++ b/vcl/unx/gtk3_kde5/kde5_filepicker.cxx @@ -91,9 +91,12 @@ void KDE5FilePicker::setMultiSelectionMode(bool multiSelect) _dialog->setFileMode(multiSelect ? QFileDialog::ExistingFiles : QFileDialog::ExistingFile); } -void KDE5FilePicker::setDefaultName(const QString& name) { _dialog->selectUrl(QUrl(name)); } +void KDE5FilePicker::setDefaultName(const QString& name) { _dialog->selectFile(name); } -void KDE5FilePicker::setDisplayDirectory(const QString& dir) { _dialog->selectUrl(QUrl(dir)); } +void KDE5FilePicker::setDisplayDirectory(const QString& dir) +{ + _dialog->setDirectoryUrl(QUrl(dir)); +} QString KDE5FilePicker::getDisplayDirectory() const { return _dialog->directoryUrl().url(); } |