Skip to content

Commit

Permalink
fix drop single clip on empty timeline adds too many tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Aug 25, 2024
1 parent c4d38a6 commit bc4e627
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/docks/timelinedock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2910,7 +2910,10 @@ void TimelineDock::insertOrOverwriteDrop(int trackIndex, int position, const QSt
overwrite(trackIndex, position, xml, false);
}
Settings.setTimelineAutoAddTracks(autoAddTracks);
m_model.checkForEmptyTracks(trackIndex);
if (autoAddTracks) {
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
m_model.checkForEmptyTracks(trackIndex);
}
}

void TimelineDock::onLoopChanged(int start, int end)
Expand Down

0 comments on commit bc4e627

Please sign in to comment.