summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2022-01-27 19:20:07 -0900
committerJim Raykowski <raykowj@gmail.com>2022-01-29 05:13:04 +0100
commit3be0151bb619786b65499be413de04ad7c343cad (patch)
treec44cc209891131c76e82f7c796904bb096043b70 /sw
parent07e8233298965ed035bc4a285de19ca540e72246 (diff)
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 <raykowj@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/utlui/content.cxx7
1 files changed, 5 insertions, 2 deletions
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();
+ }
}
}