Fix destruction of wxDataViewCtrl's editor control.
Don't pop event handler from the control more than once. See r70002 and r70005 (which this reverts) for reference. Fixes #14215. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
840fc4d170
commit
dea9430d44
@ -715,6 +715,9 @@ void wxDataViewRendererBase::DestroyEditControl()
|
||||
|
||||
wxPendingDelete.Append(handler);
|
||||
wxPendingDelete.Append(m_editorCtrl);
|
||||
|
||||
// Ensure that DestroyEditControl() is not called again for this control.
|
||||
m_editorCtrl.Release();
|
||||
}
|
||||
|
||||
void wxDataViewRendererBase::CancelEditing()
|
||||
|
Loading…
Reference in New Issue
Block a user