Commit 426413da authored by luyikei's avatar luyikei

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

parent 003cddcd
...@@ -31,6 +31,7 @@ Menu { ...@@ -31,6 +31,7 @@ Menu {
} }
MenuItem { MenuItem {
id: linkOrUnlink
text: linked ? "Unlink" : "Link" text: linked ? "Unlink" : "Link"
onTriggered: { onTriggered: {
...@@ -77,6 +78,7 @@ Menu { ...@@ -77,6 +78,7 @@ Menu {
onAboutToShow: { onAboutToShow: {
linked = clip.linked(); linked = clip.linked();
grouped = findGroup( clip.uuid ); grouped = findGroup( clip.uuid );
linkOrUnlink.enabled = selectedClips.length > 1
} }
MenuSeparator { } MenuSeparator { }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment