[vlmc-devel] TracksScene: Fix #67, delete all linked items

Rohit Yadav git at videolan.org
Mon Feb 27 05:34:07 CET 2012


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Mon Feb 27 10:18:04 2012 +0530| [fb44282351da8e759578dd8c27db7381447132f0] | committer: Rohit Yadav

TracksScene: Fix #67, delete all linked items

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=fb44282351da8e759578dd8c27db7381447132f0
---

 src/Gui/timeline/TracksScene.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/Gui/timeline/TracksScene.cpp b/src/Gui/timeline/TracksScene.cpp
index 56f30ea..306ab7f 100644
--- a/src/Gui/timeline/TracksScene.cpp
+++ b/src/Gui/timeline/TracksScene.cpp
@@ -114,6 +114,12 @@ TracksScene::askRemoveSelectedItems()
         AbstractGraphicsItem* item = dynamic_cast<AbstractGraphicsItem*>( items.at(i) );
         if ( !item )
             return;
+
+        /*FIXME: When undo-ing linked items no longer remain linked*/
+        AbstractGraphicsItem* linked_item = item->groupItem();
+        if (linked_item != NULL)
+            items.append(linked_item);
+
         ClipHelper  *ch = qobject_cast<ClipHelper*>( item->helper() );
         if ( ch != NULL )
         {



More information about the Vlmc-devel mailing list