From 4e5b631efb040b3a8f6ffab3c77cb71908e740b1 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Mon, 4 May 2026 11:38:49 +0200 Subject: [PATCH] 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 --- main.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index ede1351..be9f9b5 100755 --- a/main.py +++ b/main.py @@ -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