unset the button as temporary default item when it's destroyed (closes bug 1354875)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -197,6 +197,11 @@ bool wxButton::Create(wxWindow *parent,
|
||||
|
||||
wxButton::~wxButton()
|
||||
{
|
||||
wxWindow *parent = GetParent();
|
||||
if ( parent && parent->GetTmpDefaultItem() == this )
|
||||
{
|
||||
UnsetTmpDefault();
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user