Revert "Skip mouse button release events in wxGenericTreeCtrl."

This reverts r76093 as it broke label editing in the control.

See #16055, closes #16573.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@77895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-09-27 16:14:59 +00:00
parent 8f4422831a
commit 5cb289a07e

View File

@@ -3709,9 +3709,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
#endif
}
}
else if ( event.LeftUp() || event.RightUp() )
{
if ( m_isDragging )
else if ( (event.LeftUp() || event.RightUp()) && m_isDragging )
{
ReleaseMouse();
@@ -3746,11 +3744,6 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
#endif
}
else
{
event.Skip();
}
}
else
{
// If we got to this point, we are not dragging or moving the mouse.
// Because the code in carbon/toplevel.cpp will only set focus to the