[vlmc-devel] Track.qml: Restore ListModel "clips" if removed
Yikai Lu
git at videolan.org
Tue Jul 26 16:12:44 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Jul 26 21:48:26 2016 +0900| [17edb760db10b05eb9b3917e6c68ca085d6a65d2] | committer: Yikai Lu
Track.qml: Restore ListModel "clips" if removed
> https://code.videolan.org/videolan/vlmc/commit/17edb760db10b05eb9b3917e6c68ca085d6a65d2
---
src/Gui/timeline/Track.qml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Gui/timeline/Track.qml b/src/Gui/timeline/Track.qml
index ed9c56e..1990ad2 100644
--- a/src/Gui/timeline/Track.qml
+++ b/src/Gui/timeline/Track.qml
@@ -115,7 +115,7 @@ Item {
if ( currentTrack )
var clips = currentTrack["clips"];
else
- clips = [];
+ currentTrack.append( { "clips": [] } );
for ( j = 0; j < clips.count + 2 && isCollided; ++j ) {
isCollided = false;
for ( k = 0; k < clips.count; ++k ) {
More information about the Vlmc-devel
mailing list