serializer: clear existing clip name if duplicate of footage name

This commit is contained in:
itsmattkc
2023-02-21 19:49:52 -08:00
parent 5e29414dce
commit 49fd809db7
@@ -334,6 +334,13 @@ ProjectSerializer220403::LoadData ProjectSerializer220403::Load(Project *project
// Re-enable caches
for (Node *n : project->nodes()) {
n->SetCachesEnabled(true);
// Clear duplicate label (to facilitate #2147)
if (ClipBlock *c = dynamic_cast<ClipBlock*>(n)) {
if (c->connected_viewer() && c->GetLabel() == c->connected_viewer()->GetLabel()) {
c->SetLabel(QString());
}
}
}
return load_data;