Fix track effect added to wrong track

BUG: 368558
parent 18e1be80
......@@ -860,7 +860,7 @@ void MainWindow::slotAddEffect(const QDomElement &effect)
EFFECTMODE status = m_effectStack->effectStatus();
switch (status) {
case TIMELINE_TRACK:
pCore->projectManager()->currentTimeline()->projectView()->slotAddTrackEffect(effectToAdd, pCore->projectManager()->currentTimeline()->tracksCount() - m_effectStack->trackIndex());
pCore->projectManager()->currentTimeline()->projectView()->slotAddTrackEffect(effectToAdd, m_effectStack->trackIndex());
break;
case TIMELINE_CLIP:
pCore->projectManager()->currentTimeline()->projectView()->slotAddEffectToCurrentItem(effectToAdd);
......
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