Fix extra event sent by wxTextEntry::ChangeValue() since r71308.
The changes of r71308 sent the event unconditionally in case the text didn't really change but no events should be sent if the flags don't include SetValue_SendEvent, add a check for it. Re-closes #13936. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -235,7 +235,8 @@ void wxTextEntryBase::DoSetValue(const wxString& value, int flags)
|
|||||||
{
|
{
|
||||||
// Except that we still need to generate the event for consistency with
|
// Except that we still need to generate the event for consistency with
|
||||||
// the normal case when the text does change.
|
// the normal case when the text does change.
|
||||||
SendTextUpdatedEvent(GetEditableWindow());
|
if ( flags & SetValue_SendEvent )
|
||||||
|
SendTextUpdatedEvent(GetEditableWindow());
|
||||||
}
|
}
|
||||||
|
|
||||||
SetInsertionPoint(0);
|
SetInsertionPoint(0);
|
||||||
|
Reference in New Issue
Block a user