loadotio: minor UI tweaks

This commit is contained in:
itsmattkc
2022-01-08 11:57:30 -08:00
parent 9264a2f856
commit 8373a7ea96
2 changed files with 15 additions and 5 deletions
+4 -2
View File
@@ -128,8 +128,10 @@ bool LoadOTIOTask::Run()
Q_ARG(QList<Sequence*>,timeline_sequnce_map.values()));
if (!accepted) {
SetError(tr("Loading OpenTimelineIO file(s) was canceled"));
return false;
// Cancel to indicate to caller that this task did not complete and to simply dispose of it
Cancel();
qDeleteAll(timeline_sequnce_map); // Clear sequences
return true;
}
foreach (auto timeline, timeline_sequnce_map.keys()) {