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

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 9 11:01:55 UTC 2020


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

New commits:
commit f15ed9ef890b13394de9b2673c010086063d6e7a
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Jul 8 13:52:43 2020 +0200
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Thu Jul 9 13:01:07 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>

diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index 4363f868c482..f8cd09911018 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -452,7 +452,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