summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c3e0999)
TVN_SELCHANGINGW is generated when the tree items are deleted. Without this change, if a tree control is
in a dialog being closed, the newly active window will become inactive momentarily when tree items
are deleted and you will see a flicker.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70660
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxTreeCtrl::~wxTreeCtrl()
{
wxTreeCtrl::~wxTreeCtrl()
{
+ m_isBeingDeleted = true;
+
// delete any attributes
if ( m_hasAnyAttr )
{
// delete any attributes
if ( m_hasAnyAttr )
{
//
// to avoid such surprises, we force the generation of focus events
// now, before we generate the selection change ones
//
// to avoid such surprises, we force the generation of focus events
// now, before we generate the selection change ones
- if ( !m_changingSelection )
+ if ( !m_changingSelection && !m_isBeingDeleted )