Wrong order of calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8cc0450796
commit
5e53c1c21e
@ -247,11 +247,11 @@ void wxToggleButton::SetValue(bool state)
|
||||
if (state == GetValue())
|
||||
return;
|
||||
|
||||
GTKEnableEvents();
|
||||
GTKDisableEvents();
|
||||
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(m_widget), state);
|
||||
|
||||
GTKDisableEvents();
|
||||
GTKEnableEvents();
|
||||
}
|
||||
|
||||
// bool GetValue() const
|
||||
|
Loading…
Reference in New Issue
Block a user