[vlmc-devel] ClipContextMenu.qml: Don' t enable linking or unlinkig option if less than two clips are selected

Yikai Lu git at videolan.org
Sat Jul 8 17:16:06 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Fri Jul  7 18:54:51 2017 +0900| [426413da2e715d77836643c01e5a135c87d8c5a1] | committer: Yikai Lu

ClipContextMenu.qml: Don't enable linking or unlinkig option if less than two clips are selected

> https://code.videolan.org/videolan/vlmc/commit/426413da2e715d77836643c01e5a135c87d8c5a1
---

 src/Gui/timeline/ClipContextMenu.qml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/Gui/timeline/ClipContextMenu.qml b/src/Gui/timeline/ClipContextMenu.qml
index 9a285a4a..c3af4f24 100644
--- a/src/Gui/timeline/ClipContextMenu.qml
+++ b/src/Gui/timeline/ClipContextMenu.qml
@@ -31,6 +31,7 @@ Menu {
     }
 
     MenuItem {
+        id: linkOrUnlink
         text: linked ? "Unlink" : "Link"
 
         onTriggered: {
@@ -77,6 +78,7 @@ Menu {
     onAboutToShow: {
         linked = clip.linked();
         grouped = findGroup( clip.uuid );
+        linkOrUnlink.enabled = selectedClips.length > 1
     }
 
     MenuSeparator { }



More information about the Vlmc-devel mailing list