From c614ed58d8c9494b59500e152a747fd62722e032 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 3 Aug 1998 22:57:30 +0000 Subject: [PATCH] SelectItem() always sends the notification messages git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/treectrl.h | 5 ++--- src/generic/treectrl.cpp | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/wx/generic/treectrl.h b/include/wx/generic/treectrl.h index 63b7850079..ee199e5648 100644 --- a/include/wx/generic/treectrl.h +++ b/include/wx/generic/treectrl.h @@ -317,9 +317,8 @@ public: void SetImageList(wxImageList *imageList, int which = wxIMAGE_LIST_NORMAL); private: - // set the selection to the specified item generating appropriate event(s) if - // not disabled - void SelectItem(wxGenericTreeItem *item, bool bDoEvents = TRUE); + // set the selection to the specified item generating appropriate event(s) + void SelectItem(wxGenericTreeItem *item); wxGenericTreeItem *m_anchor; wxGenericTreeItem *m_current; diff --git a/src/generic/treectrl.cpp b/src/generic/treectrl.cpp index 089c7d21e3..c9c35cb94d 100644 --- a/src/generic/treectrl.cpp +++ b/src/generic/treectrl.cpp @@ -711,7 +711,7 @@ bool wxTreeCtrl::SelectItem(long itemId) return TRUE; }; -void wxTreeCtrl::SelectItem(wxGenericTreeItem *item, bool bDoEvents ) +void wxTreeCtrl::SelectItem(wxGenericTreeItem *item) { if (m_current != item) { @@ -724,7 +724,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 ); } } -- 2.45.2