fixed bug that wouldn't clear TrackViewItems when a new sequence was opened

This commit is contained in:
itsmattkc
2020-01-02 05:59:37 +11:00
parent 8b2514c1de
commit 7eae6a85f8
3 changed files with 16 additions and 16 deletions
@@ -60,7 +60,9 @@ void TrackView::ConnectTrackList(TrackList *list)
if (list_ != nullptr) {
foreach (TrackOutput* track, list_->Tracks()) {
splitter_->Insert(track->Index(), track->GetTrackHeight(), new TrackViewItem(track));
TrackViewItem* item = new TrackViewItem(track);
items_.append(item);
splitter_->Insert(track->Index(), track->GetTrackHeight(), item);
}
connect(list_, SIGNAL(TrackHeightChanged(int, int)), splitter_, SLOT(SetTrackHeight(int, int)));