X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42e69d6b435a4dd5415caf3750db62cf45b6f373..7c5457867870a0a33951def66373f5a76ec3ae4a:/src/msw/control.cpp diff --git a/src/msw/control.cpp b/src/msw/control.cpp index 6788e0ceb7..7f609f7bd6 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -56,15 +56,6 @@ wxControl::wxControl() wxControl::~wxControl() { m_isBeingDeleted = TRUE; - - // If we delete an item, we should initialize the parent panel, - // because it could now be invalid. - wxWindow *parent = (wxWindow *)GetParent(); - if (parent) - { - if (parent->GetDefaultItem() == (wxButton*) this) - parent->SetDefaultItem(NULL); - } } bool wxControl::ProcessCommand(wxCommandEvent& event)