hrev44398 adds 1 changeset to branch 'master' old head: e32c26f1c7ab66f202877f88565ad65fa5532318 new head: 4c45f003ede5fdc1ca9da3f51a8b7d5764a0e0a2 ---------------------------------------------------------------------------- 4c45f00: Tracker: Right clicking on Pose triggered Rename prompts Right clicking on a Pose to get the contextual menu would quite often trigger a rename action of that pose. Don't allow to rename a pose by releasing the secondary mouse button. [ Philippe Saint-Pierre <stpere@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev44398 Commit: 4c45f003ede5fdc1ca9da3f51a8b7d5764a0e0a2 URL: http://cgit.haiku-os.org/haiku/commit/?id=4c45f00 Author: Philippe Saint-Pierre <stpere@xxxxxxxxx> Date: Tue Jul 24 02:38:44 2012 UTC ---------------------------------------------------------------------------- 1 file changed, 3 insertions(+), 2 deletions(-) src/kits/tracker/PoseView.cpp | 5 +++-- ---------------------------------------------------------------------------- diff --git a/src/kits/tracker/PoseView.cpp b/src/kits/tracker/PoseView.cpp index 2349d73..0e7304b 100644 --- a/src/kits/tracker/PoseView.cpp +++ b/src/kits/tracker/PoseView.cpp @@ -6929,10 +6929,11 @@ BPoseView::MouseUp(BPoint where) int32 index; BPose* pose = FindPose(where, &index); - if (pose != NULL && fAllowPoseEditing) + uint32 lastButtons = Window()->CurrentMessage()->FindInt32("last_buttons"); + if (pose != NULL && fAllowPoseEditing && !fTrackRightMouseUp) pose->MouseUp(BPoint(0, index * fListElemHeight), this, where, index); - uint32 lastButtons = Window()->CurrentMessage()->FindInt32("last_buttons"); + // this handy field has been added by the tracking filter. // we need lastButtons for right button mouse-up tracking, // because there's currently no way to know wich buttons were