diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-09 12:09:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-12-09 15:25:49 +0100 |
commit | 8ae03b548e4b98d4740ab986c41fc24279734128 (patch) | |
tree | cd945fc67da0ad2434cfb9ab101cb5deaaa0a864 /include/vcl | |
parent | c29fa13bd050134e751b01d0c4178538c4c20f69 (diff) |
only connect to tooltip query when we have to
Change-Id: I0b7f1b798129b41c9831ccdd47cd509680b19de2
Reviewed-on: https://gerrit.libreoffice.org/84742
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/weld.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 54a72e80c32d..b7d86c9c7df9 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -734,8 +734,9 @@ protected: OUString signal_query_tooltip(const TreeIter& rIter) { return m_aQueryTooltipHdl.Call(rIter); } public: - void connect_query_tooltip(const Link<const TreeIter&, OUString>& rLink) + virtual void connect_query_tooltip(const Link<const TreeIter&, OUString>& rLink) { + assert(!m_aQueryTooltipHdl.IsSet() || !rLink.IsSet()); m_aQueryTooltipHdl = rLink; } |