LOK: don't send LOK notifications while switching views
commitf60f04cacf403aaeac67dea5861ca3fd2bbaa76b
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>
Wed, 4 Dec 2019 13:19:22 +0000 (4 08:19 -0500)
committerMichael Meeks <michael.meeks@collabora.com>
Mon, 16 Dec 2019 17:30:01 +0000 (16 17:30 +0000)
tree5e5b004a631d00bef667ed6d5c4618f8541a9f26
parent7193fa3f6782f843b5a9adf1d22172f2e85551fe
LOK: don't send LOK notifications while switching views

Changing the active view is done for virtually every
LOK API, and in some cases simply changing the view
results in a flurry of notifications that themselves
caues further API calls that need to change the view.

This moves the disabling of callbacks during setView
to SfxLokHelper to make sure no view gets any
notifications. This is needed because even when
we disable notifications for the current view,
the _other_ view(s) can still get notified as they
lose their frame.

Change-Id: Ia88a58d6a1162e48c40f4c4ce73c40ecb2c1fb7e
Reviewed-on: https://gerrit.libreoffice.org/84417
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
desktop/source/lib/init.cxx
sfx2/source/view/lokhelper.cxx