Move cloned track up incrementally (#2950)

This commit is contained in:
Oskar Wallgren
2016-08-02 13:00:00 +02:00
committed by GitHub
parent 7e99b1504f
commit 04dd35e57f

View File

@@ -1778,7 +1778,12 @@ void TrackOperationsWidget::cloneTrack()
TrackView *newTrackView = tcView->createTrackView( newTrack );
int index = tcView->trackViews().indexOf( m_trackView );
tcView->moveTrackView( newTrackView, index + 1 );
int i = tcView->trackViews().size();
while ( i != index + 1 )
{
tcView->moveTrackView( newTrackView, i - 1 );
i--;
}
}