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:
parent
6a8cbe1b92
commit
d18d8bdaf4
@ -369,6 +369,14 @@ wxWindowBase::~wxWindowBase()
|
||||
#if wxUSE_ACCESSIBILITY
|
||||
delete m_accessible;
|
||||
#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()
|
||||
|
Loading…
Reference in New Issue
Block a user