[Libreoffice-commits] core.git: vcl/qt5

Alexander Volkov (via logerrit) logerrit at kemper.freedesktop.org
Tue Apr 14 17:36:28 UTC 2020


 vcl/qt5/Qt5FilePicker.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 3a22be0178b950ab3d21eadab2bc34e7ea93eec8
Author:     Alexander Volkov <avolkov at astralinux.ru>
AuthorDate: Thu Apr 9 17:08:03 2020 +0300
Commit:     Jan-Marek Glogowski <glogow at fbihome.de>
CommitDate: Tue Apr 14 19:35:51 2020 +0200

    Qt5 implement DELETE_ITEMS action in file picker
    
    It is used to clear "Version" listbox before adding new items.
    
    Change-Id: I4cb9557c8f56d80c1dfac68dc2b5b45b5c69c2f1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91982
    Tested-by: Jenkins
    Reviewed-by: Jan-Marek Glogowski <glogow at fbihome.de>

diff --git a/vcl/qt5/Qt5FilePicker.cxx b/vcl/qt5/Qt5FilePicker.cxx
index d37c28b33c11..d648a5d94b75 100644
--- a/vcl/qt5/Qt5FilePicker.cxx
+++ b/vcl/qt5/Qt5FilePicker.cxx
@@ -431,6 +431,11 @@ void Qt5FilePicker::handleSetListValue(QComboBox* pWidget, sal_Int16 nControlAct
             pWidget->removeItem(nPos);
             break;
         }
+        case ControlActions::DELETE_ITEMS:
+        {
+            pWidget->clear();
+            break;
+        }
         case ControlActions::SET_SELECT_ITEM:
         {
             sal_Int32 nPos = 0;


More information about the Libreoffice-commits mailing list