X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ee263083c813144dc92d839b7ee0bc54db9c6569..eeb6bb3493dc28680b3801959dc719bd62be147a:/src/mac/carbon/mdi.cpp?ds=sidebyside diff --git a/src/mac/carbon/mdi.cpp b/src/mac/carbon/mdi.cpp index ff52663afc..ca02c69c0d 100644 --- a/src/mac/carbon/mdi.cpp +++ b/src/mac/carbon/mdi.cpp @@ -25,8 +25,6 @@ #include "wx/mac/private.h" #include "wx/mac/uma.h" -extern wxWindowList wxModelessWindows; - IMPLEMENT_DYNAMIC_CLASS(wxMDIParentFrame, wxFrame) IMPLEMENT_DYNAMIC_CLASS(wxMDIChildFrame, wxFrame) IMPLEMENT_DYNAMIC_CLASS(wxMDIClientWindow, wxWindow) @@ -396,8 +394,6 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE)); - wxModelessWindows.Append(this); - return true; } @@ -480,6 +476,7 @@ void wxMDIChildFrame::Restore() void wxMDIChildFrame::Activate() { + Raise (); } //----------------------------------------------------------------------------- @@ -500,8 +497,6 @@ bool wxMDIClientWindow::CreateClient(wxMDIParentFrame *parent, long style) if ( !wxWindow::Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, style) ) return false; - wxModelessWindows.Append(this); - return true; }