Prevent programatic changes from sending events

When setting search history using the CTOR, we need to avoid triggering
an event that will run independent of the user interaction.  Our
LIB_TREE interface is fragile on GTK and needs explicit conditions to
avoid segfaults

Fixes https://gitlab.com/kicad/code/kicad/issues/11633
This commit is contained in:
Seth Hillbrand 2022-05-19 09:09:45 -07:00
parent 417f2f357c
commit 2da470e1f9
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ void LIB_TREE::ExpandLibId( const LIB_ID& aLibId )
void LIB_TREE::SetSearchString( const wxString& aSearchString )
{
m_query_ctrl->SetValue( aSearchString );
m_query_ctrl->ChangeValue( aSearchString );
}