summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2019-07-28 18:41:43 -0800
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-08-01 07:37:34 +0200
commit0cc2ec0f0f2380d2c5456a5b8c9bb1789e832cde (patch)
tree1ef1d9b6f209dc191d1f4fb45844789fc42eb07a /sfx2/source/dialog
parent31fd67376ecc3b20b60d6c60eea0e01c1a9992e5 (diff)
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 <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r--sfx2/source/dialog/mgetempl.cxx5
1 files changed, 4 insertions, 1 deletions
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 );
}