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:
@@ -515,7 +515,11 @@ wxTopLevelWindowGTK::~wxTopLevelWindowGTK()
|
|||||||
{
|
{
|
||||||
m_isBeingDeleted = TRUE;
|
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 );
|
wxTopLevelWindows.DeleteObject( this );
|
||||||
|
|
||||||
|
@@ -515,7 +515,11 @@ wxTopLevelWindowGTK::~wxTopLevelWindowGTK()
|
|||||||
{
|
{
|
||||||
m_isBeingDeleted = TRUE;
|
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 );
|
wxTopLevelWindows.DeleteObject( this );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user