avoiding dangerous redraw events for windows that are on their way out…
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -106,7 +106,13 @@ bool wxTopLevelWindowMac::Destroy()
|
|||||||
if (m_nowpeer && m_nowpeer->GetWXWindow())
|
if (m_nowpeer && m_nowpeer->GetWXWindow())
|
||||||
ClearKeyboardFocus( (WindowRef)m_nowpeer->GetWXWindow() );
|
ClearKeyboardFocus( (WindowRef)m_nowpeer->GetWXWindow() );
|
||||||
#endif
|
#endif
|
||||||
return wxTopLevelWindowBase::Destroy();
|
// delayed destruction: the tlw will be deleted during the next idle
|
||||||
|
// loop iteration
|
||||||
|
if ( !wxPendingDelete.Member(this) )
|
||||||
|
wxPendingDelete.Append(this);
|
||||||
|
|
||||||
|
Hide();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user