diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-10-06 13:01:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-10-06 15:50:53 +0200 |
commit | 67c0bf2f73132406ff7dc63505c9869a2af697e0 (patch) | |
tree | dbc4bf0d15c52e13ed9101e20856a04923e7f161 /sc/source | |
parent | aafde177d68b97ebd90587603eaad014ba89d337 (diff) |
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.mcnamara@collabora.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/navipi/navipi.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |