From f8bf59a9f226c67130385e26e99e7aa5a4d957c7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 24 Oct 2006 12:23:18 +0000 Subject: [PATCH] reset the internal flags at the end of DoSetValue(), whatever happened in the callback git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/textctrl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 926d11283f..8a2cd7bffe 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -967,6 +967,12 @@ void wxTextCtrl::DoSetValue( const wxString &value, int flags ) gtk_entry_set_text( GTK_ENTRY(m_text), buffer ); } + // if, for whatever reason, the callback wasn't called the expected number + // of times, still reset the flags to the default values + m_dontMarkDirty = false; + m_countUpdatesToIgnore = 0; + + // GRG, Jun/2000: Changed this after a lot of discussion in // the lists. wxWidgets 2.2 will have a set of flags to // customize this behaviour.