summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-07-08 13:52:43 +0200
committerJan Holesovsky <kendy@collabora.com>2020-08-14 22:41:57 +0200
commit769fc49f87ccfd1858da4cddab09d978ff19df5a (patch)
treed040623defa76eefc3e2f04223bf86ee7cb52ddc
parentjsdialog: export combobox entries (diff)
downloadcore-769fc49f87ccfd1858da4cddab09d978ff19df5a.tar.gz
core-769fc49f87ccfd1858da4cddab09d978ff19df5a.zip
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@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100470 Reviewed-by: Jan Holesovsky <kendy@collabora.com>
-rw-r--r--vcl/source/control/combobox.cxx3
1 files changed, 3 insertions, 0 deletions
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();
+ }
}
}