minor code enhancements

This commit is contained in:
itsmattkc
2021-01-18 16:33:49 +11:00
parent 9bc0629346
commit cb1accaf0c
3 changed files with 16 additions and 3 deletions
+2 -2
View File
@@ -596,6 +596,8 @@ void Track::BlockDisconnected(Node* node, int element)
return;
}
emit BlockRemoved(b);
TimeRange invalidate_range(b->in(), track_length());
// Get cache index
@@ -605,8 +607,6 @@ void Track::BlockDisconnected(Node* node, int element)
blocks_.removeAt(cache_index);
block_array_indexes_.removeAt(cache_index);
emit BlockRemoved(b);
// Update previous/nexts
Block* previous = b->previous();
Block* next = b->next();