sw/source/uibase/utlui/content.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit 3be0151bb619786b65499be413de04ad7c343cad Author: Jim Raykowski <[email protected]> AuthorDate: Thu Jan 27 19:20:07 2022 -0900 Commit: Jim Raykowski <[email protected]> CommitDate: Sat Jan 29 05:13:04 2022 +0100 SwNavigator: check if unselect_all is needed Change-Id: I2a3914482167700bebf5ff8e67c34f7e31a0be9a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129089 Tested-by: Jenkins Reviewed-by: Jim Raykowski <[email protected]> diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 3a0611152894..9844a92ba774 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -3781,8 +3781,11 @@ void SwContentTree::UpdateTracking() else { // clear treeview selections - m_xTreeView->unselect_all(); - Select(); + if (m_xTreeView->count_selected_rows() > 0) + { + m_xTreeView->unselect_all(); + Select(); + } } }
