#include "timelinefunctions.h" void olive::timeline::RelinkClips(QVector &pre_clips, QVector &post_clips) { // Loop through each "pre" clip for (int i=0;ilinked.size();j++) { // Loop again through the "pre" clips to determine which are linked to each other for (int l=0;llinked.at(j) == pre_clips.at(l)) { // Check if we have an equivalent in the post_clips, and link it if so if (post_clips.at(l) != nullptr) { post_clips.at(i)->linked.append(post_clips.at(l).get()); } } } } } }