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

New commits:
commit 140d02bb818c47795dcb89845150ce2b10194dc3
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 18:01:09 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/+/157622
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index 037bc9b0836c..83a099659472 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