#ifndef WX_PRECOMP
#include "wx/app.h"
+ #include "wx/frame.h"
+ #include "wx/cursor.h"
#endif // WX_PRECOMP
-#include "wx/frame.h"
-#include "wx/cursor.h"
#include "wx/evtloop.h"
#include <gdk/gdk.h>
wxWindow *parent = wxTheApp->GetTopWindow();
if ( parent &&
parent != this &&
- parent->IsBeingDeleted() &&
+ !parent->IsBeingDeleted() &&
!(parent->GetExtraStyle() & wxWS_EX_TRANSIENT) )
{
m_parent = parent;