vcl/unx/kde5/KDE5FilePicker2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c0f45c89063fa5c4334ff9e624d24d48638ffb4d Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Thu Nov 8 23:17:15 2018 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Fri Nov 9 10:12:46 2018 +0100 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.wegh...@posteo.de> 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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits