X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c87df234ac1e46508ee0cab29c3ee933cd3151b8..14722c43c30918cd8fbba956b50ac3426d2fe339:/src/common/textentrycmn.cpp diff --git a/src/common/textentrycmn.cpp b/src/common/textentrycmn.cpp index 54b738a9ba..971f562668 100644 --- a/src/common/textentrycmn.cpp +++ b/src/common/textentrycmn.cpp @@ -235,7 +235,8 @@ void wxTextEntryBase::DoSetValue(const wxString& value, int flags) { // Except that we still need to generate the event for consistency with // the normal case when the text does change. - SendTextUpdatedEvent(GetEditableWindow()); + if ( flags & SetValue_SendEvent ) + SendTextUpdatedEvent(GetEditableWindow()); } SetInsertionPoint(0);