summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3_kde5/kde5_filepicker.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/gtk3_kde5/kde5_filepicker.cxx')
-rw-r--r--vcl/unx/gtk3_kde5/kde5_filepicker.cxx7
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(); }