Tracker: Don't change selection if right-click

... inside a selection. If you click outside a selection extend the
selection to include the new items as Tracker normally would and
then pop up the dialogs.

Works with control-click as well, same utility function used.

Fixes #10449
This commit is contained in:
John Scipione 2014-02-01 04:35:28 -05:00
parent 80f4300a72
commit 9bd08d10ab

View File

@ -7243,7 +7243,8 @@ BPoseView::MouseDown(BPoint where)
int32 index;
BPose* pose = FindPose(where, &index);
if (pose != NULL) {
AddRemoveSelectionRange(where, extendSelection, pose);
if (!pose->IsSelected() || !secondaryMouseButtonDown)
AddRemoveSelectionRange(where, extendSelection, pose);
if (fTextWidgetToCheck != NULL
&& (pose != fLastClickedPose || secondaryMouseButtonDown)) {