Add wxPropertyGridEditorEventForwarders into wxPendingDelete
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3219,16 +3219,18 @@ void wxPropertyGrid::FreeEditors()
|
|||||||
// Do not free editors immediately if processing events
|
// Do not free editors immediately if processing events
|
||||||
if ( m_wndEditor2 )
|
if ( m_wndEditor2 )
|
||||||
{
|
{
|
||||||
m_wndEditor2->PopEventHandler(true);
|
wxEvtHandler* handler = m_wndEditor2->PopEventHandler(false);
|
||||||
m_wndEditor2->Hide();
|
m_wndEditor2->Hide();
|
||||||
|
wxPendingDelete.Append( handler );
|
||||||
wxPendingDelete.Append( m_wndEditor2 );
|
wxPendingDelete.Append( m_wndEditor2 );
|
||||||
m_wndEditor2 = NULL;
|
m_wndEditor2 = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_wndEditor )
|
if ( m_wndEditor )
|
||||||
{
|
{
|
||||||
m_wndEditor->PopEventHandler(true);
|
wxEvtHandler* handler = m_wndEditor->PopEventHandler(false);
|
||||||
m_wndEditor->Hide();
|
m_wndEditor->Hide();
|
||||||
|
wxPendingDelete.Append( handler );
|
||||||
wxPendingDelete.Append( m_wndEditor );
|
wxPendingDelete.Append( m_wndEditor );
|
||||||
m_wndEditor = NULL;
|
m_wndEditor = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user