Fix reentrancy in wxDataViewRendererBase::FinishEditing().
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 2 Dec 2011 00:50:35 +0000 (00:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 2 Dec 2011 00:50:35 +0000 (00:50 +0000)
commit4d7bc8e761ff8a269d066a46ef3bba7c02e3e0e9
tree46ece62f826db09c812ae1016b87d715b279405f
parent4e4841b0ba8ee6e26c7b8b0643f6cfb57b0558a4
Fix reentrancy in wxDataViewRendererBase::FinishEditing().

Switching focus to the main wxDataViewCtrl window resulted in focus loss event
and a reentrant call to FinishEditing() itself if it wasn't called because the
in-place edit control was being destroyed the first time.

Fix this by destroying the in-place control first and adjusting the focus
later, the effect should be exactly the same but now FinishEditing() can be
safely called from anywhere in the code.

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