[vlmc-devel] commit: TracksView: Avoid double effects addition ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Thu Sep 9 01:18:11 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Sep 9 00:36:46 2010 +0200| [13b9b7bba725c21153a48a7b635c4768bcce424b] | committer: Hugo Beauzée-Luyssen
TracksView: Avoid double effects addition
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=13b9b7bba725c21153a48a7b635c4768bcce424b
---
src/Gui/timeline/TracksView.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index e66f467..7b823c4 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -763,6 +763,7 @@ TracksView::dropEvent( QDropEvent *event )
QList<AbstractGraphicsMediaItem*> clips = mediaItems<AbstractGraphicsMediaItem>( event->pos() );
if ( clips.size() > 0 )
{
+ m_itemsLoaded.insert( m_dragEffectItem->helper()->uuid() );
AbstractGraphicsMediaItem *item = clips.first();
Commands::trigger( new Commands::Effect::Add( m_dragEffectItem->effectHelper(),
item->clipHelper()->clipWorkflow() ) );
@@ -777,6 +778,7 @@ TracksView::dropEvent( QDropEvent *event )
GraphicsTrack *track = qgraphicsitem_cast<GraphicsTrack*>( item );
if ( track != NULL )
{
+ m_itemsLoaded.insert( m_dragEffectItem->helper()->uuid() );
Commands::trigger( new Commands::Effect::Add( m_dragEffectItem->effectHelper(),
track->trackWorkflow() ) );
m_dragEffectItem->m_oldTrack = track->trackWorkflow();
More information about the Vlmc-devel
mailing list