diff options
author | Jim Raykowski <raykowj@gmail.com> | 2022-08-06 20:47:13 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2022-08-08 21:40:08 +0200 |
commit | 469414e66f2b55c06439aaf062aa6dae66ef3096 (patch) | |
tree | ba419f0a806b80582725fa79c73a11c9bbe2953b /sd/source | |
parent | cc3e2e7efa35dea85eecdd163de1ca1e71ce01f7 (diff) |
tdf#138868 follow up: fix selected entry not unselected
For Gtk3, setting the Navigator tree view cursor -1 doesn't unselect
the selected entry which is what is wanted when the canvas selected
object is not in the Navigator tree view.
Change-Id: I879e8dc09870b91d42eadb6b42d9236c1a1cf40c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137916
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/dlg/sdtreelb.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index 1b49eccb6cc3..cd50e97c2682 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -1207,7 +1207,10 @@ bool SdPageObjsTLV::SelectEntry(const SdrObject *pObj) } } if (!bFound) + { + m_xTreeView->unselect_all(); m_xTreeView->set_cursor(-1); + } return bFound; } |