[vlmc-devel] ClipContextMenu: Add clip linking
Hugo Beauzée-Luyssen
git at videolan.org
Sun Oct 30 02:02:08 CEST 2016
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Oct 30 00:15:17 2016 +0200| [b9a12692309e6c59ddb1c3d0b59277122beeea0c] | committer: Hugo Beauzée-Luyssen
ClipContextMenu: Add clip linking
> https://code.videolan.org/videolan/vlmc/commit/b9a12692309e6c59ddb1c3d0b59277122beeea0c
---
src/Gui/timeline/ClipContextMenu.qml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/Gui/timeline/ClipContextMenu.qml b/src/Gui/timeline/ClipContextMenu.qml
index 5e0b4ad..82b16c8 100644
--- a/src/Gui/timeline/ClipContextMenu.qml
+++ b/src/Gui/timeline/ClipContextMenu.qml
@@ -35,6 +35,16 @@ Menu {
onTriggered: {
if ( clip.linked === true )
workflow.unlinkClips( uuid, clip.linkedClip );
+ else {
+ var selectedClip;
+ for ( var i = 0; i < selectedClips.length; ++i ) {
+ if ( selectedClips[i].uuid !== uuid ) {
+ selectedClip = selectedClips[i].uuid;
+ break;
+ }
+ }
+ workflow.linkClips( clip.uuid, selectedClip );
+ }
}
}
More information about the Vlmc-devel
mailing list