summaryrefslogtreecommitdiff
path: root/forms/source/component/Button.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/component/Button.cxx')
-rw-r--r--forms/source/component/Button.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/forms/source/component/Button.cxx b/forms/source/component/Button.cxx
index 84380a0edb97..5b41b825ff9c 100644
--- a/forms/source/component/Button.cxx
+++ b/forms/source/component/Button.cxx
@@ -458,10 +458,12 @@ DoPropertyListening::DoPropertyListening(
void DoPropertyListening::handleListening( const ::rtl::OUString& _rPropertyName )
{
if ( m_xProps.is() )
+ {
if ( m_bStartListening )
m_xProps->addPropertyChangeListener( _rPropertyName, m_xListener );
else
m_xProps->removePropertyChangeListener( _rPropertyName, m_xListener );
+ }
}
//------------------------------------------------------------------------------