SwNavigator: Improve detection of when the content tree needs refreshed
commit5c5f36aa73b11356a3bff0a9cc8b5fe8d1a776b9
authorJim Raykowski <raykowj@gmail.com>
Thu, 21 Oct 2021 17:09:51 +0000 (21 09:09 -0800)
committerJim Raykowski <raykowj@gmail.com>
Thu, 4 Nov 2021 23:04:55 +0000 (5 00:04 +0100)
treedfe53650e57daa659fd62d5d535176c4509e9451
parent31550585970b9425215863d5ede94425328355c9
SwNavigator: Improve detection of when the content tree needs refreshed

Makes the check that determines if the content tree needs refreshed be
done only when the content tree is visible AND (the document has been
modified since previous check OR an action has been made within the
content tree that requires the tree to be refreshed) AND there is no
writer shell action pending AND the content tree is not in a DnD.

Change-Id: Ie67472d44573df6afafb08b7b3229a4e07fc9db5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124036
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
sw/source/uibase/inc/conttree.hxx
sw/source/uibase/utlui/content.cxx