avoid crash with GTK3 when deleting an item, closes #15786

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2014-01-17 16:50:13 +00:00
parent 7d8f4cae1b
commit 726d6f006e

View File

@@ -1638,11 +1638,11 @@ bool wxGtkDataViewModelNotifier::ItemDeleted( const wxDataViewItem &parent, cons
gtk_tree_path_append_index( path, index );
#endif
m_internal->ItemDeleted( parent, item );
gtk_tree_model_row_deleted(
GTK_TREE_MODEL(wxgtk_model), path );
m_internal->ItemDeleted( parent, item );
// Did we remove the last child, causing 'parent' to become a leaf?
if ( !m_wx_model->IsContainer(parent) )
{