Fix side-effect of multi-select in lib trees.

This commit is contained in:
Jeff Young 2022-10-03 19:11:06 +01:00
parent 788ecd91cd
commit 01e6491046
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}