fixed ~wxWindowBase to remove associated context help from wxHelpProvider -- otherwise wrong help text could be reused by other controls later
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -369,6 +369,14 @@ wxWindowBase::~wxWindowBase()
|
|||||||
#if wxUSE_ACCESSIBILITY
|
#if wxUSE_ACCESSIBILITY
|
||||||
delete m_accessible;
|
delete m_accessible;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_HELP
|
||||||
|
// NB: this has to be called unconditionally, because we don't know
|
||||||
|
// whether this window has associated help text or not
|
||||||
|
wxHelpProvider *helpProvider = wxHelpProvider::Get();
|
||||||
|
if ( helpProvider )
|
||||||
|
helpProvider->RemoveHelp(this);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindowBase::SendDestroyEvent()
|
void wxWindowBase::SendDestroyEvent()
|
||||||
|
Reference in New Issue
Block a user