diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2022-01-24 14:16:31 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2022-01-25 10:38:39 +0100 |
commit | 43f33aabe7417a9ce00576c83360c47fcdaa217b (patch) | |
tree | 07daff0a9df16932740733b4c3af862568750d2f | |
parent | e3a0ef15eb7abccff6b55940dbd9b3278004388a (diff) |
lok: use focused tab page help
When we open dialog with tab pages, help should open
website for corresponding tab.
Use focused window - but not global which can be modified
by other view in lok case.
followup for:
commit 70f2fc7a10f41204e353bd3487377983a1018b53
lok: don't use focus window to request help
Change-Id: Ib7544a91696ce2f2c8ab01e62a47d279d2c5c655
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128863
Reviewed-by: Mert Tumer <mert.tumer@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 62e1cacb90ad7f2531dbd18e1c5f5cff7cbec7ab)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128817
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r-- | vcl/source/app/salvtables.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 6fa2797b73a6..80e22bef5670 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -6251,8 +6251,10 @@ void SalInstanceWindow::help() { //show help for widget with keyboard focus vcl::Window* pWidget = ImplGetSVData()->mpWinData->mpFocusWin; - if (!pWidget || comphelper::LibreOfficeKit::isActive()) + if (!pWidget) pWidget = m_xWindow; + if (comphelper::LibreOfficeKit::isActive() && m_xWindow->GetFocusedWindow()) + pWidget = m_xWindow->GetFocusedWindow(); OString sHelpId = pWidget->GetHelpId(); while (sHelpId.isEmpty()) { |