[vlmc-devel] ClipContextMenu.qml: Don't use property binding on isGrouped

Yikai Lu git at videolan.org
Wed Jul 20 15:18:46 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed Jul 20 16:37:16 2016 +0900| [27d9e692277075041a8387268a5c4b6adadd3a85] | committer: Yikai Lu

ClipContextMenu.qml: Don't use property binding on isGrouped

> https://code.videolan.org/videolan/vlmc/commit/27d9e692277075041a8387268a5c4b6adadd3a85
---

 src/Gui/timeline/ClipContextMenu.qml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/Gui/timeline/ClipContextMenu.qml b/src/Gui/timeline/ClipContextMenu.qml
index 3e9fdc3..2465feb 100644
--- a/src/Gui/timeline/ClipContextMenu.qml
+++ b/src/Gui/timeline/ClipContextMenu.qml
@@ -6,12 +6,11 @@ Menu {
     title: "Edit"
 
     property string uuid
+    property bool isGrouped
 
     MenuItem {
         text: isGrouped ? "Ungroup" : "Group"
 
-        property bool isGrouped: findGroup( uuid )
-
         onTriggered: {
             if ( selectedClips.length <= 1 )
                 return;
@@ -26,7 +25,10 @@ Menu {
                 }
                 addGroup( l );
             }
-            isGrouped = Qt.binding( function(){ return findGroup( uuid ); } );
         }
     }
+
+    onAboutToShow: {
+        isGrouped = findGroup( uuid );
+    }
 }



More information about the Vlmc-devel mailing list