Fix for modified state not set after next change following a ChangeValue()
See #17540
This commit is contained in:
parent
f2106dcc3c
commit
696a5ba3dd
@ -205,8 +205,8 @@ private:
|
|||||||
// the widget used for single line controls
|
// the widget used for single line controls
|
||||||
GtkWidget *m_text;
|
GtkWidget *m_text;
|
||||||
|
|
||||||
bool m_modified:1;
|
bool m_modified;
|
||||||
bool m_dontMarkDirty:1;
|
bool m_dontMarkDirty;
|
||||||
|
|
||||||
int m_countUpdatesToIgnore;
|
int m_countUpdatesToIgnore;
|
||||||
|
|
||||||
|
@ -1042,6 +1042,8 @@ void wxTextCtrl::WriteText( const wxString &text )
|
|||||||
|
|
||||||
// we're changing the text programmatically
|
// we're changing the text programmatically
|
||||||
DontMarkDirtyOnNextChange();
|
DontMarkDirtyOnNextChange();
|
||||||
|
// make sure marking is re-enabled even if events are suppressed
|
||||||
|
wxON_BLOCK_EXIT_SET(m_dontMarkDirty, false);
|
||||||
|
|
||||||
// Inserting new text into the control below will emit insert-text signal
|
// Inserting new text into the control below will emit insert-text signal
|
||||||
// which assumes that if m_imKeyEvent is set, it is called in response to
|
// which assumes that if m_imKeyEvent is set, it is called in response to
|
||||||
|
Loading…
Reference in New Issue
Block a user