Don't send unnecessary events when wxSpinCtrlDouble loses focus
Only send the event when the control loses focus if its value has really changed. Closes https://github.com/wxWidgets/wxWidgets/pull/436
This commit is contained in:
parent
d5c46e87a6
commit
5e24bd162c
@ -410,8 +410,8 @@ void wxSpinCtrlGenericBase::OnSpinButton(wxSpinEvent& event)
|
||||
|
||||
void wxSpinCtrlGenericBase::OnTextLostFocus(wxFocusEvent& event)
|
||||
{
|
||||
SyncSpinToText(SendEvent_Text);
|
||||
DoSendEvent();
|
||||
if ( SyncSpinToText(SendEvent_Text) )
|
||||
DoSendEvent();
|
||||
|
||||
event.Skip();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user