From 0cc2ec0f0f2380d2c5456a5b8c9bb1789e832cde Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Sun, 28 Jul 2019 18:41:43 -0800 Subject: tdf#126584 Disable styles next style edit style button ...on dialog opening for paragraph and page new style creation. Change-Id: I64dd51947261249293581c73bd1c410f3b54a592 Reviewed-on: https://gerrit.libreoffice.org/76717 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- sfx2/source/dialog/mgetempl.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sfx2/source/dialog') diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx index 836ca6de1164..4b022a8eddc0 100644 --- a/sfx2/source/dialog/mgetempl.cxx +++ b/sfx2/source/dialog/mgetempl.cxx @@ -83,7 +83,7 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage(TabPageParent pParent, const Sf // this Page needs ExchangeSupport SetExchangeSupport(); - if ( aFollow == aName ) + if ( aFollow.isEmpty() || aFollow == aName ) m_xEditStyleBtn->set_sensitive(false); else m_xEditStyleBtn->set_sensitive(true); @@ -489,7 +489,10 @@ void SfxManageStyleSheetPage::Reset( const SfxItemSet* /*rAttrSet*/ ) pStyle->SetFollow( aFollow ); if ( aFollow.isEmpty() ) + { m_xFollowLb->set_active_text( aName ); + m_xEditStyleBtn->set_sensitive( false ); + } else m_xFollowLb->set_active_text( aFollow ); } -- cgit