fix: right-click delete works on other-folder markers too
The context menu hit test only searched the current folder's markers. Now also checks other-folder markers so the delete option appears for subprofile markers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2349,12 +2349,20 @@ class TimelineWidget(QWidget):
|
||||
if abs(x - self._time_to_x(kt)) <= 8:
|
||||
hit_kf_time = kt
|
||||
break
|
||||
# Check export markers.
|
||||
# Check export markers (current folder + other folders).
|
||||
hit_path = None
|
||||
for (t, _num, output_path, _span) in self._markers:
|
||||
if abs(x - self._time_to_x(t)) <= 10:
|
||||
hit_path = output_path
|
||||
break
|
||||
if hit_path is None:
|
||||
for _folder, group in self._other_markers:
|
||||
for (t, _num, output_path, _span) in group:
|
||||
if abs(x - self._time_to_x(t)) <= 10:
|
||||
hit_path = output_path
|
||||
break
|
||||
if hit_path is not None:
|
||||
break
|
||||
from PyQt6.QtWidgets import QMenu
|
||||
menu = QMenu(self)
|
||||
act_kf = None
|
||||
|
||||
Reference in New Issue
Block a user