Fix index confusion causing crash on project opening

parent 9d02a7ad
......@@ -399,7 +399,7 @@ int TimelineItemModel::getFirstVideoTrackIndex() const
int trackId;
auto it = m_allTracks.cbegin();
while (it != m_allTracks.cend()) {
trackId = getTrackMltIndex((*it)->getId());
trackId = (*it)->getId();
if (!(*it)->isAudioTrack()) {
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment