]> git.sesse.net Git - kdenlive/commitdiff
Applied patch supplied by Till TheatoFixes bug 1547: http://kdenlive.org/mantis/view...
authorSimon A. Eugster <simon.eu@gmail.com>
Thu, 8 Apr 2010 11:57:06 +0000 (11:57 +0000)
committerSimon A. Eugster <simon.eu@gmail.com>
Thu, 8 Apr 2010 11:57:06 +0000 (11:57 +0000)
svn path=/trunk/kdenlive/; revision=4376

src/customtrackview.cpp

index 6759a7aeaeaef13d394a9213ddb4e9ad7e4ea21c..a4927056f49f9fe9a68f4c43b3845087a63f274d 100644 (file)
@@ -5240,8 +5240,9 @@ void CustomTrackView::slotChangeTrack(int ix)
     d.track_nb->setValue(ix);
     d.slotUpdateName(ix);
     d.setWindowTitle(i18n("Change Track Type"));
-
-    if (m_document->trackInfoAt(m_document->tracksCount() - ix - 1).type == VIDEOTRACK)
+    
+    TrackInfo oldInfo = m_document->trackInfoAt(m_document->tracksCount() - ix - 1);
+    if (oldInfo.type == VIDEOTRACK)
         d.video_track->setChecked(true);
     else
         d.audio_track->setChecked(true);
@@ -5250,6 +5251,7 @@ void CustomTrackView::slotChangeTrack(int ix)
         TrackInfo info;
         info.isLocked = false;
         info.isMute = false;
+        info.trackName = oldInfo.trackName;
         ix = d.track_nb->value();
 
         if (d.video_track->isChecked()) {