Commit b5b08387 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

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);
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()) {;
QMapIterator<int, QString> i(pCore->getVideoTrackNames());
while (i.hasPrevious()) {
if (i.key() < aTrack.second) {
m_trackBox->addItem(i.value(), i.key());
Supports Markdown
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