Fix composition tracks listed in reverse order

parent c9f551ba
Pipeline #3380 passed with stage
in 19 minutes and 36 seconds
......@@ -46,11 +46,12 @@ void TransitionStackView::refreshTracks()
}
QSignalBlocker bk(m_trackBox);
m_trackBox->clear();
QMapIterator<int, QString> i(pCore->getVideoTrackNames());
QPair<int, int> aTrack = pCore->getCompositionATrack(m_model->getOwnerId().second);
m_trackBox->addItem(i18n("Automatic"), -1);
while (i.hasNext()) {
i.next();
QMapIterator<int, QString> i(pCore->getVideoTrackNames());
i.toBack();
while (i.hasPrevious()) {
i.previous();
if (i.key() < aTrack.second) {
m_trackBox->addItem(i.value(), i.key());
}
......
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