[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - vcl/unx

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Nov 12 12:09:59 UTC 2018


 vcl/unx/gtk3_kde5/kde5_filepicker.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit bedd49e6b40c1a51459f9a0dfa0c0ed0d0b8ae2e
Author:     Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Fri Nov 9 12:21:08 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Nov 12 13:09:39 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/63193
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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