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.
This commit is contained in:
parent
e32c26f1c7
commit
4c45f003ed
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user