diff options
| author | Ryan Leavengood <leavengood@gmail.com> | 2012-07-28 19:58:28 -0400 |
|---|---|---|
| committer | Ryan Leavengood <leavengood@gmail.com> | 2012-07-28 19:58:28 -0400 |
| commit | 688e878807fee1750d876001cff4f1ce41da3a79 (patch) | |
| tree | 690c75ef9958612be5f77a957b16b4bda98bf9a6 | |
| parent | d266c87d174fc714e2c0ecbfe9c18713f3c9215d (diff) | |
Don't check for double click if it was a right mouse click.hrev44424
Fixes #8714.
| -rw-r--r-- | src/kits/tracker/PoseView.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kits/tracker/PoseView.cpp b/src/kits/tracker/PoseView.cpp index da5746694f..7430bff230 100644 --- a/src/kits/tracker/PoseView.cpp +++ b/src/kits/tracker/PoseView.cpp @@ -6913,8 +6913,7 @@ BPoseView::MouseDown(BPoint where) uint32 buttons = (uint32)window->CurrentMessage()->FindInt32("buttons"); uint32 modifs = modifiers(); - if (buttons == B_SECONDARY_MOUSE_BUTTON) - fTrackRightMouseUp = true; + fTrackRightMouseUp = (buttons == B_SECONDARY_MOUSE_BUTTON); bool extendSelection = (modifs & B_COMMAND_KEY) && fMultipleSelection; @@ -6925,7 +6924,7 @@ BPoseView::MouseDown(BPoint where) if (pose) { AddRemoveSelectionRange(where, extendSelection, pose); - if (!extendSelection && WasDoubleClick(pose, where)) { + if (!extendSelection && !fTrackRightMouseUp && WasDoubleClick(pose, where)) { // special handling for Path field double-clicks if (!WasClickInPath(pose, index, where)) OpenSelection(pose, &index); |
