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:
parent
417f2f357c
commit
2da470e1f9
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue