cui/source/dialogs/cuihyperdlg.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 12c50f2206f3f37083721beeb8757fc680aa1831
Author:     Skyler Grey <[email protected]>
AuthorDate: Fri Sep 19 12:18:03 2025 +0000
Commit:     Skyler Grey <[email protected]>
CommitDate: Thu Sep 25 14:05:41 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]>
    (cherry picked from commit c8325d123ac7c16699a594897881571980f687db)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191498
    Tested-by: Jenkins
    Reviewed-by: Skyler Grey <[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) {

Reply via email to