]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/control.cpp
create lib\...\setup.h from setup.h, not setup0.h which is not meant to be edited
[wxWidgets.git] / src / motif / control.cpp
index 6413b921032581ae73b298930b3361a8414707db..894198a0a10515ecf166c0a6b40a5724ebbc5832 100644 (file)
@@ -62,14 +62,6 @@ bool wxControl::Create( wxWindow *parent,
     return ret;
 }
 
-wxControl::~wxControl()
-{
-    // If we delete an item, we should initialize the parent panel,
-    // because it could now be invalid.
-    if ( GetParent()->panel->GetDefaultItem() == this)
-        panel->SetDefaultItem(NULL);
-}
-
 void wxControl::SetLabel(const wxString& label)
 {
     Widget widget = (Widget) GetLabelWidget() ;