summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-07-21 15:22:36 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2022-07-25 09:53:55 +0200
commita173b937aa8b8b67a423f23b05ddf02f83870034 (patch)
tree16bc44440f403a4b9b3cc053a771652e47704e21 /sc/source
parent4d1135553d47d627cfc63761818e00d9042f9e18 (diff)
lok: don't force formulabar update on every view switch
This will reduce number of messages and helps to avoid selection change in other views when someone is editing a multiline cell and other user is doing something else at the same time (which triggers view switching to perform operations as different user). Change-Id: I8efc82be9793910c46bf6f33f7993e4c5734f9de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137304 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Rashesh Padia <rashesh.padia@collabora.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/view/tabvwsh4.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx
index 10c80a66e31f..0cc350590919 100644
--- a/sc/source/ui/view/tabvwsh4.cxx
+++ b/sc/source/ui/view/tabvwsh4.cxx
@@ -157,7 +157,8 @@ void ScTabViewShell::Activate(bool bMDI)
}
}
- UpdateInputHandler( /*bForce=*/ true, /*bStopEditing=*/ !comphelper::LibreOfficeKit::isActive() );
+ bool isLOK = comphelper::LibreOfficeKit::isActive();
+ UpdateInputHandler( /*bForce=*/ !isLOK, /*bStopEditing=*/ !isLOK );
if ( bFirstActivate )
{