summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-10-27 16:17:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-10-29 14:14:04 +0100
commit07bde58988705ca45a619eb7a4e670a5d951abf6 (patch)
treeb3e76af23a024d7549d31b5df0642a79b769028d /vcl/source
parent09e3d45cdc5c739e5246388a83ccfc6d76bf66e9 (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.cxx5
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