X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6045f99ba2bf267172a11f262fea8dedb0a75ee..780bb8744b5a9d9492831f0bd338251aa4641c56:/src/motif/control.cpp diff --git a/src/motif/control.cpp b/src/motif/control.cpp index 310c2c6861..894198a0a1 100644 --- a/src/motif/control.cpp +++ b/src/motif/control.cpp @@ -62,18 +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. - wxPanel *panel = wxDynamicCast(GetParent(), wxPanel); - if (panel) - { - if ( (wxControl *)panel->GetDefaultItem() == this) - panel->SetDefaultItem((wxButton*) NULL); - } -} - void wxControl::SetLabel(const wxString& label) { Widget widget = (Widget) GetLabelWidget() ;