fixed GTK critical warning when closing MDI child (patch 529369)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-03-19 15:04:53 +00:00
parent 818503a182
commit 710968c3aa
2 changed files with 10 additions and 2 deletions

View File

@@ -515,7 +515,11 @@ wxTopLevelWindowGTK::~wxTopLevelWindowGTK()
{
m_isBeingDeleted = TRUE;
gtk_window_set_focus( GTK_WINDOW(m_widget), NULL );
// it may also be GtkScrolledWindow in the case of an MDI child
if (GTK_IS_WINDOW(m_widget))
{
gtk_window_set_focus( GTK_WINDOW(m_widget), NULL );
}
wxTopLevelWindows.DeleteObject( this );