[Libreoffice-commits] core.git: Branch 'distro/lhm/libreoffice-5-2+backports' - vcl/unx
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Dec 18 18:57:18 UTC 2018
vcl/unx/gtk3_kde5/kde5_filepicker.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit c14702008310e5d55041e0a2fbe19aa93dd3cee6
Author: Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Fri Nov 9 12:21:08 2018 +0100
Commit: Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Tue Dec 18 19:56:57 2018 +0100
tdf#121276 gtk3_kde5: Don't prevent creating new files
This takes over for gtk3_kde5 what was done for kde5 in commit
c0f45c89063fa5c4334ff9e624d24d48638ffb4d.
Change-Id: Ieca71498bd0cc00ca07b83f6e1178d983169d5be
Reviewed-on: https://gerrit.libreoffice.org/63172
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn at posteo.de>
(cherry picked from commit a6318cb430fd8f90b760f7dc36f4eacd3904e22e)
Reviewed-on: https://gerrit.libreoffice.org/65360
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
diff --git a/vcl/unx/gtk3_kde5/kde5_filepicker.cxx b/vcl/unx/gtk3_kde5/kde5_filepicker.cxx
index 16e50695b02c..f7fbbfb50034 100644
--- a/vcl/unx/gtk3_kde5/kde5_filepicker.cxx
+++ b/vcl/unx/gtk3_kde5/kde5_filepicker.cxx
@@ -88,6 +88,9 @@ bool KDE5FilePicker::execute()
void KDE5FilePicker::setMultiSelectionMode(bool multiSelect)
{
+ if (_dialog->acceptMode() == QFileDialog::AcceptSave)
+ return;
+
_dialog->setFileMode(multiSelect ? QFileDialog::ExistingFiles : QFileDialog::ExistingFile);
}
More information about the Libreoffice-commits
mailing list