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?
|
||||
if (fTextWidgetToCheck != NULL && !IsDragging())
|
||||
if (fTextWidgetToCheck != NULL)
|
||||
fTextWidgetToCheck->CheckExpiration();
|
||||
}
|
||||
|
||||
@@ -7568,7 +7568,9 @@ BPoseView::MouseUp(BPoint where)
|
||||
else
|
||||
loc = clickedPose->Location(this);
|
||||
|
||||
clickedPose->MouseUp(loc, this, where, index);
|
||||
// do not check for double-click or rename after dragging
|
||||
if (!wasDragging)
|
||||
clickedPose->MouseUp(loc, this, where, index);
|
||||
|
||||
// reselect clicked pose
|
||||
bool shouldSelect = wasSelected && !ExtendSelection();
|
||||
|
||||
Reference in New Issue
Block a user