diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-04-07 09:48:42 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-04-07 09:06:39 +0000 |
commit | d8faf3bf9a82e8f49340b5020ec4ee931cc2f3f4 (patch) | |
tree | bd0894296220ea8f02487567a78521979bd2e318 /vcl | |
parent | 3c443852d25a61b61353d630d8dc8753bad6ab30 (diff) |
Related tdf#105566 Update Infobar when signature status changes
gpg4libre
Change-Id: I8f29cf16905c79d19d46662b087f4fd8778c8147
Reviewed-on: https://gerrit.libreoffice.org/36251
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/button.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 64c078e070fa..e65bd06ace74 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -109,13 +109,15 @@ void Button::dispose() Control::dispose(); } -void Button::SetCommandHandler(const OUString& aCommand) +void Button::SetCommandHandler(const OUString& aCommand, bool bAddStatusListener) { maCommand = aCommand; SetClickHdl( LINK( this, Button, dispatchCommandHandler) ); - mpButtonData->mpStatusListener = new VclStatusListener<Button>(this, aCommand); - mpButtonData->mpStatusListener->startListening(); + if (bAddStatusListener) { + mpButtonData->mpStatusListener = new VclStatusListener<Button>(this, aCommand); + mpButtonData->mpStatusListener->startListening(); + } } void Button::Click() |