diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2018-11-08 23:17:15 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2018-11-09 10:12:46 +0100 |
commit | c0f45c89063fa5c4334ff9e624d24d48638ffb4d (patch) | |
tree | d122ed573d5a703fa2634cd2c2089a8568e25e54 /vcl | |
parent | 0120dfb12bcc8f86f256f8f56410215c1828e578 (diff) |
tdf#121276 kde5: Don't prevent creating new files
Setting QFileDialogs FileMode to either
'QfileDialog::ExistingFile' or 'QFileDialog::ExistingFiles'
will prevent the creation of new files, which should not be
done for a save dialog.
After all, selecting multiple files at once is probably not
a use case for a save dialog after all.
Change-Id: Idc4ae5c3bd19352dbc5610b5bcc073423362cb71
Reviewed-on: https://gerrit.libreoffice.org/63142
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/kde5/KDE5FilePicker2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/kde5/KDE5FilePicker2.cxx b/vcl/unx/kde5/KDE5FilePicker2.cxx index 4327d0d36256..576318e18799 100644 --- a/vcl/unx/kde5/KDE5FilePicker2.cxx +++ b/vcl/unx/kde5/KDE5FilePicker2.cxx @@ -208,7 +208,7 @@ void SAL_CALL KDE5FilePicker::setMultiSelectionMode(sal_Bool multiSelect) return Q_EMIT setMultiSelectionSignal(multiSelect); } - if (mbIsFolderPicker) + if (mbIsFolderPicker || _dialog->acceptMode() == QFileDialog::AcceptSave) return; _dialog->setFileMode(multiSelect ? QFileDialog::ExistingFiles : QFileDialog::ExistingFile); |