From 4813bb8d72d4e6821e031f2b19baaa338b714d39 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 19 Dec 2007 14:35:28 +0000 Subject: [PATCH] fix compilation after r50329 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk1/dialog.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gtk1/dialog.cpp b/src/gtk1/dialog.cpp index 90c46a9ff8..007c13df28 100644 --- a/src/gtk1/dialog.cpp +++ b/src/gtk1/dialog.cpp @@ -191,9 +191,8 @@ int wxDialog::ShowModal() // forbidden if ( !GetParent() && !(GetWindowStyleFlag() & wxDIALOG_NO_PARENT) ) { - wxWindow *parent = wxTheApp->GetTopWindow(); wxWindow * const parent = GetParentForModalDialog(); - if ( parent && parent != this ) + if ( parent ) { m_parent = parent; gtk_window_set_transient_for( GTK_WINDOW(m_widget), GTK_WINDOW(parent->m_widget) );