Revert "Skip mouse button release events in wxGenericTreeCtrl."

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

See #16055, closes #16573.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-09-27 16:12:34 +00:00
parent 0465215157
commit 47f6df12b3

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