[vlmc-devel] ClipLibraryView: Fix not updating onTimeline

Yikai Lu git at videolan.org
Wed Jun 21 12:56:41 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed Jun 21 19:53:53 2017 +0900| [d871ed0364375cc783042a4e2a618f130c96702a] | committer: Yikai Lu

ClipLibraryView: Fix not updating onTimeline

> https://code.videolan.org/videolan/vlmc/commit/d871ed0364375cc783042a4e2a618f130c96702a
---

 src/Gui/library/ui/ClipLibraryView.qml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Gui/library/ui/ClipLibraryView.qml b/src/Gui/library/ui/ClipLibraryView.qml
index e90e54e2..9b47dbde 100644
--- a/src/Gui/library/ui/ClipLibraryView.qml
+++ b/src/Gui/library/ui/ClipLibraryView.qml
@@ -49,9 +49,9 @@ Rectangle {
         }
 
         onClipOnTimelineChanged: {
-            for ( var i = 0; i < clipItems.length; ++i ) {
-                if ( clipItems[i].uuid === uuid ) {
-                    clipItems[i].onTimeline = onTimeline;
+            for ( var i = 0; i < clips.count; ++i ) {
+                if ( clips.get(i)["uuid"] === uuid ) {
+                    clips.get(i)["onTimeline"] = onTimeline;
                     break;
                 }
             }



More information about the Vlmc-devel mailing list