[vlmc-devel] Timeline: Show appropriate remove clip dialogs

Yikai Lu git at videolan.org
Mon Jul 10 18:31:33 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Jul 10 22:25:40 2017 +0900| [58977f30edb324a730c785b85c68484030dcbeb3] | committer: Yikai Lu

Timeline: Show appropriate remove clip dialogs

> https://code.videolan.org/videolan/vlmc/commit/58977f30edb324a730c785b85c68484030dcbeb3
---

 src/Gui/timeline/ClipContextMenu.qml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Gui/timeline/ClipContextMenu.qml b/src/Gui/timeline/ClipContextMenu.qml
index 59bd9788..be8ce494 100644
--- a/src/Gui/timeline/ClipContextMenu.qml
+++ b/src/Gui/timeline/ClipContextMenu.qml
@@ -60,7 +60,10 @@ Menu {
         text: "Delete"
 
         onTriggered: {
-            removeClipDialog.visible = true;
+            if ( selectedClips.length > 0 )
+                removeSelectedClipsDialog.visible = true;
+            else
+                removeClipDialog.visible = true;
         }
     }
 



More information about the Vlmc-devel mailing list