]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dialog.cpp
fixed reverted #if condition around wxDoLogTraceWchar
[wxWidgets.git] / src / gtk1 / dialog.cpp
index a58dcb55dbf94fa45a902fbb627e0c35bc9f773d..5a1129b0e2215de42fbcaf0d8632c8e00b7ac6a7 100644 (file)
@@ -15,9 +15,9 @@
 #ifndef WX_PRECOMP
     #include "wx/app.h"
     #include "wx/frame.h"
+    #include "wx/cursor.h"
 #endif // WX_PRECOMP
 
-#include "wx/cursor.h"
 #include "wx/evtloop.h"
 
 #include <gdk/gdk.h>
@@ -194,7 +194,7 @@ int wxDialog::ShowModal()
         wxWindow *parent = wxTheApp->GetTopWindow();
         if ( parent &&
                 parent != this &&
-                    parent->IsBeingDeleted() &&
+                    !parent->IsBeingDeleted() &&
                         !(parent->GetExtraStyle() & wxWS_EX_TRANSIENT) )
         {
             m_parent = parent;