]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/window.cpp
TransferFrom/ToWindow() were reverted, fixed
[wxWidgets.git] / src / mac / carbon / window.cpp
index 701f4010ecee1243c02d663d4e5ea66d88604374..86f4af777c81ab70ca481531df42f0254c529197 100644 (file)
@@ -174,15 +174,8 @@ wxWindowMac::~wxWindowMac()
         gFocusWindow = NULL ;
     }
 
-       // CS: copied from MSW :
-    // VS: destroy children first and _then_ detach *this from its parent.
-    //     If we'd do it the other way around, children wouldn't be able
-    //     find their parent frame (see above).
     DestroyChildren();
 
-    if ( m_parent )
-        m_parent->RemoveChild(this);
-
     // delete our drop target if we've got one
 #if wxUSE_DRAG_AND_DROP
     if ( m_dropTarget != NULL )