fix: unpack 4-tuple markers in export overlap check
The marker format was extended to include clip_span but the overlap check in _on_export still unpacked 3 values, causing a crash on export. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -5524,10 +5524,10 @@ class MainWindow(QMainWindow):
|
|||||||
# Check for overlapping existing markers
|
# Check for overlapping existing markers
|
||||||
if not self._overwrite_path:
|
if not self._overwrite_path:
|
||||||
clip_end = self._cursor + self._clip_span
|
clip_end = self._cursor + self._clip_span
|
||||||
for t, _num, _path in self._timeline._markers:
|
for t, _num, _path, m_span in self._timeline._markers:
|
||||||
if abs(t - self._cursor) < 0.1:
|
if abs(t - self._cursor) < 0.1:
|
||||||
continue # same position (overwrite case)
|
continue # same position (overwrite case)
|
||||||
marker_end = t + self._clip_dur
|
marker_end = t + m_span
|
||||||
if self._cursor < marker_end and clip_end > t:
|
if self._cursor < marker_end and clip_end > t:
|
||||||
self._show_status("Warning: overlaps with existing export", 3000)
|
self._show_status("Warning: overlaps with existing export", 3000)
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user