Revert commit 1ffc0b61 breaking group loading.

CCBUG: 418974
parent 45cc1195
......@@ -2251,7 +2251,7 @@ bool TimelineModel::requestTrackInsertion(int position, int &id, const QString &
// TODO: make sure we disable overlayTrack before inserting a track
qDebug()<<"=== REQUESTING TRACK INSERTION AT: "<<position;
if (position == -1) {
position = audioTrack ? 0 : (int)(m_allTracks.size());
position = (int)(m_allTracks.size());
}
if (position < 0 || position > (int)m_allTracks.size()) {
return false;
......
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