lok: masterpage: disable callbacks on painting
commitbac26f91ae930902c336b1e5ceb08e1ae5de8d8a
authorSzymon Kłos <szymon.klos@collabora.com>
Mon, 14 Nov 2022 15:11:55 +0000 (14 16:11 +0100)
committerSzymon Kłos <szymon.klos@collabora.com>
Sat, 19 Nov 2022 16:44:34 +0000 (19 17:44 +0100)
treedc1a77465eff0a3835acf7f7491b52d5ee5ef421
parent325bab6a92921a0356cc3e1c66f14ad0c6200d85
lok: masterpage: disable callbacks on painting

We did that only for original view, but we need to disable
callbacks for used view - so when we switch mode or part it
will not send the notification to the client.

Bug fixed by this patch:
1. open impress in two LOK sessions
2. A enters MasterPage mode
3. B switched slide
4. A exits MasterPage mode

result: A was switched to the slide selected by B

Change-Id: I7dde8bb4c73862813d064319922aba4c4b727db9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142716
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ash@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142966
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
desktop/source/lib/init.cxx