Close wxDataViewCtrl inline editor when destroying the control.
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 14 Dec 2011 16:00:30 +0000 (16:00 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 14 Dec 2011 16:00:30 +0000 (16:00 +0000)
commita85b4023d15183d826fec483d573eae6464e4942
tree15877f72fda5acfa57c6dbd7b018124b45fb3902
parenteff1c3e8ec093b83b61d04d543d8ff37792a31f2
Close wxDataViewCtrl inline editor when destroying the control.

If the wxDataViewCtrl control was destroyed while an inline editor
control was still active, it wouldn't get destroyed in the right order
and the ~wxWindow assert about unpopped event handlers would be
triggered.

Fix this by popping the handler as one of the first things in
wxDataViewRendererBase destructor.

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