Fix TrackList event propagation

This commit is contained in:
Paul Licameli 2018-10-27 21:23:20 -04:00
parent 70fff4b28b
commit cda9715ce6
1 changed files with 2 additions and 2 deletions

View File

@ -1093,13 +1093,13 @@ template <
* Clear, and Contains, plus serialization of the list of tracks.
*/
struct TrackListEvent : public wxEvent
struct TrackListEvent : public wxCommandEvent
{
explicit
TrackListEvent(
wxEventType commandType,
const std::weak_ptr<Track> &pTrack = {}, int code = -1)
: wxEvent{ commandType }
: wxCommandEvent{ commandType }
, mpTrack{ pTrack }
, mCode{ code }
{}