Tracker: Prevent rename on mouse up after dragging, fixes #20176.
Remove previous fix from hrev59950, this was also not the correct place to check for dragging. Change-Id: I0a47a85794977298aee70934f01170fd57f6ce87 Reviewed-on: https://review.haiku-os.org/c/haiku/+/11510 Haiku-Format: Haiku-format Bot <[email protected]> Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]> Reviewed-by: John Scipione <[email protected]>
This commit is contained in:
@@ -971,7 +971,7 @@ BPoseView::Pulse()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Do we have a TextWidget waiting for its double-click check to expire?
|
// Do we have a TextWidget waiting for its double-click check to expire?
|
||||||
if (fTextWidgetToCheck != NULL && !IsDragging())
|
if (fTextWidgetToCheck != NULL)
|
||||||
fTextWidgetToCheck->CheckExpiration();
|
fTextWidgetToCheck->CheckExpiration();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7568,6 +7568,8 @@ BPoseView::MouseUp(BPoint where)
|
|||||||
else
|
else
|
||||||
loc = clickedPose->Location(this);
|
loc = clickedPose->Location(this);
|
||||||
|
|
||||||
|
// do not check for double-click or rename after dragging
|
||||||
|
if (!wasDragging)
|
||||||
clickedPose->MouseUp(loc, this, where, index);
|
clickedPose->MouseUp(loc, this, where, index);
|
||||||
|
|
||||||
// reselect clicked pose
|
// reselect clicked pose
|
||||||
|
|||||||
Reference in New Issue
Block a user