git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49599
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
public:
EventsSuppressor(wxTextEntryBase *text, bool suppress = true)
+ : m_text(text),
+ m_suppress(suppress)
{
- m_suppress = suppress;
if ( m_suppress )
- {
- m_text = text;
m_text->SuppressTextChangedEvents();
- }
}
~EventsSuppressor()
wxTextEntryBase *m_text;
bool m_suppress;
};
+
friend class EventsSuppressor;
// return true if the events are currently not suppressed