cui/source/dialogs/cuihyperdlg.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit c8325d123ac7c16699a594897881571980f687db Author: Skyler Grey <[email protected]> AuthorDate: Fri Sep 19 12:18:03 2025 +0000 Commit: Szymon Kłos <[email protected]> CommitDate: Sat Sep 20 14:39:28 2025 +0200 fix(lok): avoid remembering hyperlink dialog tab In tdf#90496, insert hyperlink was set up to remember the last view used Normally, this is desireable. With LibreOfficeKit, however, it's not necessarily the case that the same user is accessing the dialog on consecutive openings This is a problem in Collabora Online, say, where the dialog would open on different tabs depending on where the last person closed it... ...all this to say: let's pick a reasonable default ("internet") for Kit and use that all the time Change-Id: I6a6a6964c6796141af4a0b73a208e49cb6e3fa4a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191204 Reviewed-by: Szymon Kłos <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx index aae5973ec585..7ee7151ffbdc 100644 --- a/cui/source/dialogs/cuihyperdlg.cxx +++ b/cui/source/dialogs/cuihyperdlg.cxx @@ -234,6 +234,10 @@ void SvxHpLinkDlg::SetPage ( SvxHyperlinkItem const * pItem ) OUString sPageId(msRememberedPageId); + if (comphelper::LibreOfficeKit::isActive()) { + sPageId = "internet"; + } + if (eProtocolTyp == INetProtocol::Http || eProtocolTyp == INetProtocol::Https || eProtocolTyp == INetProtocol::Ftp) { sPageId = "internet"; } else if (eProtocolTyp == INetProtocol::Mailto) {
