[vlmc-devel] Unlink a clip if its linked clip is removed

Yikai Lu git at videolan.org
Sat Jul 23 17:12:26 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Jul 23 23:35:09 2016 +0900| [5ed944ab5f90a86035fa05fb6a490eebf12991a6] | committer: Yikai Lu

Unlink a clip if its linked clip is removed

> https://code.videolan.org/videolan/vlmc/commit/5ed944ab5f90a86035fa05fb6a490eebf12991a6
---

 src/Gui/timeline/Clip.qml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/Gui/timeline/Clip.qml b/src/Gui/timeline/Clip.qml
index be7d4b8..71c2a2a 100644
--- a/src/Gui/timeline/Clip.qml
+++ b/src/Gui/timeline/Clip.qml
@@ -128,6 +128,9 @@ Rectangle {
         Drag.drop();
         selected = false;
 
+        if ( linkedClip )
+            findClipItem( linkedClip ).linkedClip = "";
+
         for ( var i = 0; i < allClips.length; ++i ) {
             if ( allClips[i] === clip ) {
                 allClips.splice( i, 1 );



More information about the Vlmc-devel mailing list