From b8a89b3356275e95e3fc78c79f55a209f8056556 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Mon, 3 Jun 2024 11:08:52 +0200 Subject: tdf#69724 Disable 'Change Bullet' btn until selection exists Change-Id: I9c1fdeb4423a8fe45121ff58097582dcccdd12ee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168359 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- cui/source/tabpages/numpages.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cui') diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index 343b0ce9c7f0..c0495541ca61 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -330,6 +330,7 @@ SvxBulletPickTabPage::SvxBulletPickTabPage(weld::Container* pPage, weld::DialogC , m_xExamplesVSWin(new weld::CustomWeld(*m_xBuilder, u"valueset"_ustr, *m_xExamplesVS)) { SetExchangeSupport(); + m_xBtChangeBullet->set_sensitive(false); m_xExamplesVS->init(NumberingPageType::BULLET); m_xExamplesVS->SetSelectHdl(LINK(this, SvxBulletPickTabPage, NumSelectHdl_Impl)); m_xExamplesVS->SetDoubleClickHdl(LINK(this, SvxBulletPickTabPage, DoubleClickHdl_Impl)); @@ -426,6 +427,8 @@ IMPL_LINK_NOARG(SvxBulletPickTabPage, NumSelectHdl_Impl, ValueSet*, void) if(!pActNum) return; + m_xBtChangeBullet->set_sensitive(true); + bPreset = false; bModified = true; sal_uInt16 nIndex = m_xExamplesVS->GetSelectedItemId() - 1; -- cgit