From 01e6491046f4ddc0c49f075e7705ef75641b9215 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 3 Oct 2022 19:11:06 +0100 Subject: [PATCH] Fix side-effect of multi-select in lib trees. --- common/widgets/lib_tree.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/widgets/lib_tree.cpp b/common/widgets/lib_tree.cpp index b497604d8e..087aa9481d 100644 --- a/common/widgets/lib_tree.cpp +++ b/common/widgets/lib_tree.cpp @@ -340,6 +340,7 @@ void LIB_TREE::selectIfValid( const wxDataViewItem& aTreeId ) if( aTreeId.IsOk() ) { m_tree_ctrl->EnsureVisible( aTreeId ); + m_tree_ctrl->UnselectAll(); m_tree_ctrl->Select( aTreeId ); postPreselectEvent(); }