[Libreoffice-commits] core.git: vcl/unx
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Nov 9 14:49:17 UTC 2018
vcl/unx/gtk3_kde5/kde5_filepicker.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit a6318cb430fd8f90b760f7dc36f4eacd3904e22e
Author: Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Fri Nov 9 12:21:08 2018 +0100
Commit: Michael Weghorn <m.weghorn at posteo.de>
CommitDate: Fri Nov 9 15:47:06 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>
diff --git a/vcl/unx/gtk3_kde5/kde5_filepicker.cxx b/vcl/unx/gtk3_kde5/kde5_filepicker.cxx
index e5bdd7e2646c..42e278aa3d0e 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