[vlmc-devel] commit: GraphicsEffectItem: Destroy the effect item when the container gets deleted. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Tue Sep 21 17:17:38 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Sep 21 16:51:48 2010 +0200| [ddd5977a492f48437fa1e577205d9e72ba5c1150] | committer: Hugo Beauzée-Luyssen 

GraphicsEffectItem: Destroy the effect item when the container gets deleted.

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

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

diff --git a/src/Gui/timeline/GraphicsEffectItem.cpp b/src/Gui/timeline/GraphicsEffectItem.cpp
index e1190ef..7659692 100644
--- a/src/Gui/timeline/GraphicsEffectItem.cpp
+++ b/src/Gui/timeline/GraphicsEffectItem.cpp
@@ -302,6 +302,7 @@ GraphicsEffectItem::setContainer( AbstractGraphicsMediaItem *item )
         connect( item, SIGNAL( moved( qint64 ) ), this, SLOT( containerMoved( qint64 ) ) );
         connect( item, SIGNAL( trackChanged( GraphicsTrack* ) ),
                  this, SLOT( setTrack( GraphicsTrack* ) ) );
+        connect( item, SIGNAL( destroyed() ), this, SLOT( deleteLater() ) );
         if ( m_effectHelper->length() > item->helper()->length() )
             m_effectHelper->setBoundaries( 0, item->helper()->length() );
         if ( startPos() < item->pos().x() )



More information about the Vlmc-devel mailing list