summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-04-07 14:11:16 +0200
committerMichael Stahl <mstahl@redhat.com>2017-04-07 14:15:23 +0200
commitb805e5705cfaafd8e54283840bec23afc789124a (patch)
treeeb5d1b21310f062e3469ca6d832e7e59bc3fb8f2 /vcl
parentbe8b9b4d29abb951aea0ea195541143d256954dc (diff)
Revert "Related tdf#105566 Update Infobar when signature status changes"
This reverts commit d8faf3bf9a82e8f49340b5020ec4ee931cc2f3f4. This causes an infinite recursion in JunitTest_sfx2_complex involving the newly added SignatureHelper::updateInfoBarState().
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/button.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index e65bd06ace74..64c078e070fa 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -109,15 +109,13 @@ void Button::dispose()
Control::dispose();
}
-void Button::SetCommandHandler(const OUString& aCommand, bool bAddStatusListener)
+void Button::SetCommandHandler(const OUString& aCommand)
{
maCommand = aCommand;
SetClickHdl( LINK( this, Button, dispatchCommandHandler) );
- if (bAddStatusListener) {
- mpButtonData->mpStatusListener = new VclStatusListener<Button>(this, aCommand);
- mpButtonData->mpStatusListener->startListening();
- }
+ mpButtonData->mpStatusListener = new VclStatusListener<Button>(this, aCommand);
+ mpButtonData->mpStatusListener->startListening();
}
void Button::Click()