Fix assert when destroying wxDataViewCtrl being edited in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 26 Apr 2011 22:57:01 +0000 (22:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 26 Apr 2011 22:57:01 +0000 (22:57 +0000)
commitb2fd3bea361eefa072f4d62e2502dd018ef68b83
tree88432d33329c4c836781eff9057b1a9167b169a8
parentb3a8aa924a006d80e57539bcf8f3bfdf49081c88
Fix assert when destroying wxDataViewCtrl being edited in wxGTK.

If wxDataViewCtrl was destroyed while showing a generic editor, an assert
occurred in wxWindowBase dtor as the event handler pushed on it by the editor.

Fix this by calling CancelEditing() when the control is destroyed and also fix
the crash in CancelEditing() in wxGTK due to recursive calls to FinishEditing().

Closes #12683.

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