cui/source/tabpages/numpages.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit bacf18009eadd72d6abb14444618dc2870f4bd04
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Mon Jun 3 11:08:52 2024 +0200
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Fri Jun 7 22:13:47 2024 +0200

    tdf#69724 Disable 'Change Bullet' btn until selection exists
    
    Change-Id: I9c1fdeb4423a8fe45121ff58097582dcccdd12ee
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168372
    Tested-by: allotropia jenkins <jenk...@allotropia.de>
    Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de>

diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx
index 17269ef88d38..c9fb1c094373 100644
--- a/cui/source/tabpages/numpages.cxx
+++ b/cui/source/tabpages/numpages.cxx
@@ -333,6 +333,7 @@ SvxBulletPickTabPage::SvxBulletPickTabPage(weld::Container* 
pPage, weld::DialogC
     , m_xExamplesVSWin(new weld::CustomWeld(*m_xBuilder, "valueset", 
*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));
@@ -429,6 +430,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;

Reply via email to