]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/toplevel.cpp
Bugfix (comparision vs. assignment).
[wxWidgets.git] / src / mgl / toplevel.cpp
index 65a6371dbd7b03330807bd50c2652d3b06514a90..ebb4bacd10802d58d6bfb6c2a681587014551521 100644 (file)
@@ -109,22 +109,6 @@ bool wxTopLevelWindowMGL::Create(wxWindow *parent,
     return true;
 }
 
     return true;
 }
 
-wxTopLevelWindowMGL::~wxTopLevelWindowMGL()
-{
-    m_isBeingDeleted = true;
-
-    wxTopLevelWindows.DeleteObject(this);
-
-    if (wxTheApp->GetTopWindow() == this)
-        wxTheApp->SetTopWindow(NULL);
-
-    if (wxTopLevelWindows.IsEmpty() &&
-        wxTheApp->GetExitOnFrameDelete())
-    {
-        wxTheApp->ExitMainLoop();
-    }
-}
-
 bool wxTopLevelWindowMGL::ShowFullScreen(bool show, long style)
 {
     if (show == m_fsIsShowing) return false; // return what?
 bool wxTopLevelWindowMGL::ShowFullScreen(bool show, long style)
 {
     if (show == m_fsIsShowing) return false; // return what?
@@ -171,7 +155,7 @@ bool wxTopLevelWindowMGL::Show(bool show)
         GetEventHandler()->ProcessEvent(event);
     }
 
         GetEventHandler()->ProcessEvent(event);
     }
 
-    if ( ret && show && AcceptsFocus() )
+    if ( ret && show && CanAcceptFocus() )
         SetFocus();
         // FIXME_MGL -- don't do this for popup windows?
     return ret;
         SetFocus();
         // FIXME_MGL -- don't do this for popup windows?
     return ret;