[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - vcl/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 14 20:42:29 UTC 2020


 vcl/source/control/combobox.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 769fc49f87ccfd1858da4cddab09d978ff19df5a
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Jul 8 13:52:43 2020 +0200
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Fri Aug 14 22:41:57 2020 +0200

    Call modified handler on combobox selection
    
    SelectEntryPos is used by uitest framework
    to perform combobox selection action.
    Calling handler is required to propagate
    changes to the client code.
    
    Change-Id: I83d3d72ee5f17f382ce5f56b35b0a91ec98ebfb3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98370
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100470
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index 944860e0ca74..227856bee234 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -453,7 +453,10 @@ IMPL_LINK( ComboBox::Impl, ImplSelectionChangedHdl, sal_Int32, nChanged, void )
     if (!m_pImplLB->IsTrackingSelect())
     {
         if (!m_pSubEdit->IsReadOnly() && m_pImplLB->GetEntryList()->IsEntryPosSelected(nChanged))
+        {
             m_pSubEdit->SetText(m_pImplLB->GetEntryList()->GetEntryText(nChanged));
+            m_pSubEdit->Modify();
+        }
     }
 }
 


More information about the Libreoffice-commits mailing list