lok: sc: avoid the shared spreadsheet dialog

It is not needed the LO core shared spreadsheet
because the online has collaborative functionality turns on
by default.

Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: I57ab83eae2913522d55704ae5a115e30c9d10034
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145091
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145613
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 7137fa5158530c0f6adb1f80f82203b43213187f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146632
Tested-by: Jenkins
This commit is contained in:
Henry Castro 2023-01-05 11:32:32 -04:00 committed by Andras Timar
parent 6031935412
commit 1854f8ae2c

View file

@ -726,7 +726,8 @@ void ScDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
#endif
#if HAVE_FEATURE_MULTIUSER_ENVIRONMENT
if ( IsDocShared() && !SC_MOD()->IsInSharedDocLoading() )
if ( IsDocShared() && !SC_MOD()->IsInSharedDocLoading()
&& !comphelper::LibreOfficeKit::isActive() )
{
ScAppOptions aAppOptions = SC_MOD()->GetAppOptions();
if ( aAppOptions.GetShowSharedDocumentWarning() )