SwNavigator: fix two uses of UpdateListBox
commitedfb9ddb55d2959b8d05366233183306d19b3780
authorJim Raykowski <raykowj@gmail.com>
Tue, 2 Nov 2021 05:08:51 +0000 (1 21:08 -0800)
committerJim Raykowski <raykowj@gmail.com>
Tue, 2 Nov 2021 16:16:49 +0000 (2 17:16 +0100)
treea1d43e7804e39d7913af68d5b3c6d3b254427f46
parent7826ed1b4a4f1424f7425037da4ecec86ab24d46
SwNavigator: fix two uses of UpdateListBox

1) UpdateListBox only needs to be called in the CommandHdl function
when the content tree displayed is changed using the context menu
Display submenu.
2) When content is deleted it is unnecessary to call UpdateListBox.

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