sw/source/uibase/utlui/content.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit edfb9ddb55d2959b8d05366233183306d19b3780
Author:     Jim Raykowski <rayk...@gmail.com>
AuthorDate: Mon Nov 1 21:08:51 2021 -0800
Commit:     Jim Raykowski <rayk...@gmail.com>
CommitDate: Tue Nov 2 17:16:49 2021 +0100

    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 <rayk...@gmail.com>

diff --git a/sw/source/uibase/utlui/content.cxx 
b/sw/source/uibase/utlui/content.cxx
index 5f323790e107..f6f56c9bfb26 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -4630,9 +4630,9 @@ void SwContentTree::ExecuteContextMenuAction(const 
OString& rSelectedPopupEntry)
                 m_eState = (nSelectedPopupEntry == 1) ? State::ACTIVE : 
State::HIDDEN;
                 Display(nSelectedPopupEntry == 1);
             }
+            GetParentWindow()->UpdateListBox();
         }
     }
-    GetParentWindow()->UpdateListBox();
 }
 
 void SwContentTree::DeleteOutlineSelections()
@@ -5094,7 +5094,6 @@ void SwContentTree::EditEntry(const weld::TreeIter& 
rEntry, EditEntryMode nMode)
     if(EditEntryMode::DELETE == nMode)
     {
         m_bViewHasChanged = true;
-        GetParentWindow()->UpdateListBox();
         TimerUpdate(&m_aUpdTimer);
         grab_focus();
     }

Reply via email to