]> git.saurik.com Git - wxWidgets.git/commit
Remove the item before notifying about it in wxDataViewIndexListModel.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Dec 2011 13:08:46 +0000 (13:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Dec 2011 13:08:46 +0000 (13:08 +0000)
commitd4cf50c8b2574caec6dc13f7dfb0f3ee2b92842e
treecf1bd117b4d70875c8b6ff91799c4d7009f6acc0
parent46e9b34a60c6c27847eec529350cc7580457fe2f
Remove the item before notifying about it in wxDataViewIndexListModel.

Remove the item from the internal representation of the model before calling
ItemDeleted() callback so that the callback sees the model in a consistent
state.

This is more consistent with the other callbacks (e.g. ItemAdded()) and other
models (e.g. wxDataViewVirtualListModel) and should fix crashes in wxOSX
version of the control.

Closes #13753.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/datavcmn.cpp