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:
John Scipione
2026-08-16 12:59:58 -04:00
parent 446139c354
commit f14cafbe87
+4 -2
View File
@@ -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();