diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-10-27 16:17:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-29 14:14:04 +0100 |
commit | 07bde58988705ca45a619eb7a4e670a5d951abf6 (patch) | |
tree | b3e76af23a024d7549d31b5df0642a79b769028d /vcl/source | |
parent | 09e3d45cdc5c739e5246388a83ccfc6d76bf66e9 (diff) |
use activate-link instead of clicked
so we can return true to consume the event and not continue to the
default url dispatch handler
Change-Id: I66400363a57d528a25d68a7f9314a8bc7d95876e
Reviewed-on: https://gerrit.libreoffice.org/81555
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/app/salvtables.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 6b4dcd0a4032..83def998e546 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -2691,8 +2691,9 @@ public: IMPL_LINK(SalInstanceLinkButton, ClickHdl, FixedHyperlink&, rButton, void) { - m_aOrigClickHdl.Call(rButton); - signal_clicked(); + bool bConsumed = signal_activate_link(); + if (!bConsumed) + m_aOrigClickHdl.Call(rButton); } class SalInstanceRadioButton : public SalInstanceButton, public virtual weld::RadioButton |