]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/textentrycmn.cpp
Fix deprecating warning introduced in r72446.
[wxWidgets.git] / src / common / textentrycmn.cpp
index 54b738a9babb5460fce6cc98e3dd55aacc13b96a..971f5626688ed50faab56148b1f5a62469327d04 100644 (file)
@@ -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);