summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2024-01-19 15:49:49 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2024-02-08 13:31:13 +0100
commit3eb73e8bca02d2f0b16bc38c880dc529c83e23bc (patch)
treebaa85048dadd3c4ddc046ebfdf7f6bb43493cedb
parenttdf#158740 fix crash by checking the end node's index (diff)
downloadcore-3eb73e8bca02d2f0b16bc38c880dc529c83e23bc.tar.gz
core-3eb73e8bca02d2f0b16bc38c880dc529c83e23bc.zip
LOK: disable popup bubble for hyperlinks
Change-Id: I0ca21a90561affa453bd249c86e58793618f809e (cherry picked from commit 88fea772610a4feef018ba03fd19749841772225) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162287 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r--sfx2/source/appl/sfxhelp.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx
index b596a4e33efa..785872ddee0b 100644
--- a/sfx2/source/appl/sfxhelp.cxx
+++ b/sfx2/source/appl/sfxhelp.cxx
@@ -665,6 +665,10 @@ OUString SfxHelp::GetHelpText(const OUString& aCommandURL, const weld::Widget* p
OUString SfxHelp::GetURLHelpText(std::u16string_view aURL)
{
+ // hyperlinks are handled differently in Online
+ if (comphelper::LibreOfficeKit::isActive())
+ return OUString();
+
bool bCtrlClickHlink = SvtSecurityOptions::IsOptionSet(SvtSecurityOptions::EOption::CtrlClickHyperlink);
// "ctrl-click to follow link:" for not MacOS