X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b0dfbca1d817c033b10be2713dbb9d1b7ae0863..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/generic/editlbox.cpp diff --git a/src/generic/editlbox.cpp b/src/generic/editlbox.cpp index 7818c33a5a..14d3cd18cb 100644 --- a/src/generic/editlbox.cpp +++ b/src/generic/editlbox.cpp @@ -350,9 +350,9 @@ void wxEditableListBox::OnEndLabelEdit(wxListEvent& event) // possible: m_listCtrl->InsertItem(m_listCtrl->GetItemCount(), wxEmptyString); - // Simulate a wxEVT_COMMAND_LIST_ITEM_SELECTED event for the new item, + // Simulate a wxEVT_LIST_ITEM_SELECTED event for the new item, // so that the buttons are enabled/disabled properly - wxListEvent selectionEvent(wxEVT_COMMAND_LIST_ITEM_SELECTED, m_listCtrl->GetId()); + wxListEvent selectionEvent(wxEVT_LIST_ITEM_SELECTED, m_listCtrl->GetId()); selectionEvent.m_itemIndex = event.GetIndex(); m_listCtrl->GetEventHandler()->ProcessEvent(selectionEvent); }