X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46ae103b9f08fc4e447d16a6a92b03cf55ee3189..096e3ea1c5d6d0f3f5aac62f44d138ff8f0cc3a8:/src/mgl/toplevel.cpp diff --git a/src/mgl/toplevel.cpp b/src/mgl/toplevel.cpp index 69bbdf584a..80646a601f 100644 --- a/src/mgl/toplevel.cpp +++ b/src/mgl/toplevel.cpp @@ -22,9 +22,12 @@ #pragma hdrstop #endif -#include "wx/defs.h" -#include "wx/toplevel.h" -#include "wx/app.h" +#ifndef WX_PRECOMP + #include "wx/defs.h" + #include "wx/toplevel.h" + #include "wx/app.h" +#endif // WX_PRECOMP + #include "wx/mgl/private.h" // ---------------------------------------------------------------------------- @@ -115,8 +118,8 @@ wxTopLevelWindowMGL::~wxTopLevelWindowMGL() if (wxTheApp->GetTopWindow() == this) wxTheApp->SetTopWindow(NULL); - if ((wxTopLevelWindows.Number() == 0) && - (wxTheApp->GetExitOnFrameDelete())) + if (wxTopLevelWindows.IsEmpty() && + wxTheApp->GetExitOnFrameDelete()) { wxTheApp->ExitMainLoop(); }