[Libreoffice-commits] core.git: cui/source

Jan-Marek Glogowski (via logerrit) logerrit at kemper.freedesktop.org
Fri Sep 10 22:20:57 UTC 2021


 cui/source/tabpages/autocdlg.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit c58a1058d4868f0f704547c11da1c9d30bceba5c
Author:     Jan-Marek Glogowski <glogow at fbihome.de>
AuthorDate: Fri Sep 10 18:31:59 2021 +0200
Commit:     Jan-Marek Glogowski <glogow at fbihome.de>
CommitDate: Sat Sep 11 00:20:21 2021 +0200

    Allow multiple selection in AutoComplete word list
    
    Before commit 9c5d20105f0b123fca724cb4845f0e7227c217d8 ("weld
    OfaAutoCompleteTabPage"), this used to be a MultiListBox.
    
    Copying in that dialog also just copies selected entries, so
    there is no usable GUI way left for a user to copy the whole
    word list.
    
    Change-Id: Ib2909642be9dd0d6ebac1648b603c7a8bde7ca5f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121914
    Tested-by: Jenkins
    Reviewed-by: Jan-Marek Glogowski <glogow at fbihome.de>

diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index e632a1b3be49..881ef8b53454 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -1922,6 +1922,7 @@ OfaAutoCompleteTabPage::OfaAutoCompleteTabPage(weld::Container* pPage, weld::Dia
 
     m_xLBEntries->set_size_request(m_xLBEntries->get_approximate_digit_width() * 30,
                                    m_xLBEntries->get_height_rows(10));
+    m_xLBEntries->set_selection_mode(SelectionMode::Multiple);
 
     // the defined KEYs
     static const sal_uInt16 aKeyCodes[] = {


More information about the Libreoffice-commits mailing list