mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Don't fire events when going back to original text in onSetFocus().
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15851
This commit is contained in:
parent
d78d4830e4
commit
3651cad7fd
@ -215,7 +215,7 @@ void UNIT_BINDER::onSetFocus( wxFocusEvent& aEvent )
|
||||
|
||||
if( oldStr.length() && oldStr != textEntry->GetValue() )
|
||||
{
|
||||
textEntry->SetValue( oldStr );
|
||||
textEntry->ChangeValue( oldStr );
|
||||
textEntry->SetSelection( m_selStart, m_selEnd );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user