sc/source/ui/navipi/navipi.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 67c0bf2f73132406ff7dc63505c9869a2af697e0
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Fri Oct 6 13:01:12 2023 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Oct 6 15:50:53 2023 +0200

    cool#7373 the document doesn't change in online
    
    the navigator always looks at the same document
    
    calc should do like writer and have the navigator listen to just
    the initial document until that dies. This is the safest option
    to take for the scenario in question though.
    
    Change-Id: Ic75cad4bb52f4d58ec58341fb8bed4c87ca9d90a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157639
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index 1c83bd703623..940a8f4e4f8f 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -490,6 +490,11 @@ void ScNavigatorDlg::Notify( SfxBroadcaster&, const 
SfxHint& rHint )
 {
     if (rHint.GetId() == SfxHintId::ThisIsAnSfxEventHint)
     {
+        // This is for when the document might change and the navigator
+        // wants to update for the new document, which isn't a scenario
+        // that happens in online.
+        if (comphelper::LibreOfficeKit::isActive())
+            return;
         const SfxEventHint& rEventHint = static_cast<const 
SfxEventHint&>(rHint);
         if (rEventHint.GetEventId() == SfxEventHintId::ActivateDoc)
         {

Reply via email to