From: Vadim Zeitlin Date: Fri, 24 Jul 1998 17:04:48 +0000 (+0000) Subject: SelectItem() now sends a wxEVT_SELECTED notification. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d37a02d0d5a40b42019ef2d213dca210219a18e6 SelectItem() now sends a wxEVT_SELECTED notification. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/treectrl.cpp b/src/generic/treectrl.cpp index bd94192309..a8cb0cfb1a 100644 --- a/src/generic/treectrl.cpp +++ b/src/generic/treectrl.cpp @@ -714,12 +714,12 @@ bool wxTreeCtrl::SelectItem(long itemId) return FALSE; } - SelectItem(pItem, FALSE /* no events */); + SelectItem(pItem); return TRUE; }; -void wxTreeCtrl::SelectItem(wxGenericTreeItem *item, bool bDoEvents) +void wxTreeCtrl::SelectItem(wxGenericTreeItem *item) { if (m_current != item) { @@ -732,8 +732,7 @@ void wxTreeCtrl::SelectItem(wxGenericTreeItem *item, bool bDoEvents) m_current->SetHilight( TRUE ); RefreshLine( m_current ); - if ( bDoEvents ) - m_current->SendSelected( this ); + m_current->SendSelected( this ); } }