[vlmc-devel] Main.qml: Count tracks on every loop of removeClipFromTrackContainer

Yikai Lu git at videolan.org
Mon Jul 11 17:08:15 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Jul 12 00:05:08 2016 +0900| [237cbea9bce707421bb07068d66f00d399627ead] | committer: Yikai Lu

Main.qml: Count tracks on every loop of removeClipFromTrackContainer

> https://code.videolan.org/videolan/vlmc/commit/237cbea9bce707421bb07068d66f00d399627ead
---

 src/Gui/timeline/main.qml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/Gui/timeline/main.qml b/src/Gui/timeline/main.qml
index 77bf397..baa28cf 100644
--- a/src/Gui/timeline/main.qml
+++ b/src/Gui/timeline/main.qml
@@ -102,8 +102,7 @@ Rectangle {
 
     function removeClipFromTrackContainer( trackType, uuid )
     {
-        var tracks = trackContainer( trackType )["tracks"];
-        for ( var i = 0; i < tracks.count; i++  )
+        for ( var i = 0; i < trackContainer( trackType )["tracks"].count; i++  )
             removeClipFromTrack( trackType, i, uuid );
     }
 



More information about the Vlmc-devel mailing list