forked from mia/Aegisub
Set the event object for colour button click events. Fixes a bug where colour buttons in automation dialogs were completely broken.
Originally committed to SVN as r5767.
This commit is contained in:
parent
374a43cd8b
commit
5cb7bdcbaf
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ void ColourButton::SetColour(wxColour col) {
|
||||||
// when the color has changed
|
// when the color has changed
|
||||||
wxCommandEvent evt(wxEVT_COMMAND_BUTTON_CLICKED, GetId());
|
wxCommandEvent evt(wxEVT_COMMAND_BUTTON_CLICKED, GetId());
|
||||||
evt.SetClientData(this);
|
evt.SetClientData(this);
|
||||||
|
evt.SetEventObject(this);
|
||||||
AddPendingEvent(evt);
|
AddPendingEvent(evt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue