ItemDeleted now has (parent, item)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -577,7 +577,7 @@ void MyFrame::OnDeleteMusic(wxCommandEvent& WXUNUSED(event) )
|
||||
{
|
||||
wxDataViewItem item = m_musicCtrl->GetSelection();
|
||||
if (item.IsOk())
|
||||
m_music_model->Delete( item );
|
||||
m_music_model->Delete( m_music_model->GetParent(item), item );
|
||||
}
|
||||
|
||||
void MyFrame::OnPrependList( wxCommandEvent& WXUNUSED(event) )
|
||||
@@ -589,7 +589,7 @@ void MyFrame::OnDeleteList( wxCommandEvent& WXUNUSED(event) )
|
||||
{
|
||||
wxDataViewItem item = m_listCtrl->GetSelection();
|
||||
if (item.IsOk())
|
||||
m_list_model->DeleteItem( item );
|
||||
m_list_model->DeleteItem( m_list_model->GetParent(item), item );
|
||||
}
|
||||
|
||||
void MyFrame::OnItemAdded( wxDataViewEvent &event )
|
||||
|
Reference in New Issue
Block a user