pointer tool: only clean up tracks once per operation

This commit is contained in:
itsmattkc
2020-01-02 05:02:09 +11:00
parent 104415a4de
commit 3492b72e05
+7 -2
View File
@@ -184,8 +184,13 @@ void TimelineWidget::PointerTool::MouseReleaseInternal(TimelineViewMouseEvent *e
blocks_to_temp_remove.append(b);
}
tracks_affected.append(ghost->Track());
tracks_affected.append(ghost->GetAdjustedTrack());
if (!tracks_affected.contains(ghost->Track())) {
tracks_affected.append(ghost->Track());
}
if (!tracks_affected.contains(ghost->GetAdjustedTrack())) {
tracks_affected.append(ghost->GetAdjustedTrack());
}
}
// If there are any blocks to remove, remove them