[vlmc-devel] Timeline: Don't select clips after they are added

Yikai Lu git at videolan.org
Sat Jul 23 10:07:58 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Jul 23 17:06:25 2016 +0900| [eb1006f5d1375c93c5c7efe5fa24a28c5f99ff5a] | committer: Yikai Lu

Timeline: Don't select clips after they are added

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

 src/Gui/timeline/Clip.qml | 5 ++++-
 src/Gui/timeline/main.qml | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/Gui/timeline/Clip.qml b/src/Gui/timeline/Clip.qml
index 73c14ba..aee9800 100644
--- a/src/Gui/timeline/Clip.qml
+++ b/src/Gui/timeline/Clip.qml
@@ -110,7 +110,10 @@ Rectangle {
     }
 
     Component.onCompleted: {
-        selected = true;
+        if ( clipInfo["selected"] === false )
+            selected = false;
+        else
+            selected = true;
         newTrackId = trackId;
         allClips.push( clip );
     }
diff --git a/src/Gui/timeline/main.qml b/src/Gui/timeline/main.qml
index 4223137..f4bc1c8 100644
--- a/src/Gui/timeline/main.qml
+++ b/src/Gui/timeline/main.qml
@@ -93,6 +93,7 @@ Rectangle {
         newDict["uuid"] = clipDict["uuid"];
         newDict["trackId"] = trackId;
         newDict["name"] = clipDict["name"];
+        newDict["selected"] = false;
         newDict["linkedClip"] = clipDict["linkedClip"] ? clipDict["linkedClip"] : "";
         var tracks = trackContainer( trackType )["tracks"];
         while ( trackId > tracks.count - 1 )



More information about the Vlmc-devel mailing list