]> git.saurik.com Git - wxWidgets.git/commitdiff
SelectItem() always sends the notification messages
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 3 Aug 1998 22:57:30 +0000 (22:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 3 Aug 1998 22:57:30 +0000 (22:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/treectrl.h
src/generic/treectrl.cpp

index 63b78500790be28f7195d49c495cbd71b197c7af..ee199e56482c00abbdb6f50fe03791ecf064eec4 100644 (file)
@@ -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;
index 089c7d21e3c716481aa97abe44dc40b0bd806caf..c9c35cb94d4b6eee42d6b2f50192b5027848db3b 100644 (file)
@@ -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 );
   }
 }