[vlmc-devel] commit: TracksView: Don' t allow nor highlight anything related to effect for non Video tracks. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Sun Sep 5 19:45:15 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Sep  5 19:44:49 2010 +0200| [dd30ad7fe566f52ca82b98b839bbd2a6c80e859d] | committer: Hugo Beauzée-Luyssen 

TracksView: Don't allow nor highlight anything related to effect for non Video tracks.

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

 src/Gui/timeline/TracksView.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index 1de1d38..088a916 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -368,6 +368,8 @@ TracksView::dragMoveEvent( QDragMoveEvent *event )
         {
             foreach ( AbstractGraphicsMediaItem* item, clips )
             {
+                if ( item->mediaType() != Workflow::VideoTrack )
+                    continue ;
                 m_effectEmphasizedItems.insert( item );
                 item->setEmphasized( true );
             }
@@ -378,7 +380,7 @@ TracksView::dragMoveEvent( QDragMoveEvent *event )
             foreach ( QGraphicsItem* item, tracks )
             {
                 GraphicsTrack   *track = qgraphicsitem_cast<GraphicsTrack*>( item );
-                if ( track != NULL )
+                if ( track != NULL && track->mediaType() == Workflow::VideoTrack )
                 {
                     m_effectEmphasizedTracks.insert( track );
                     track->setEmphasized( true );



More information about the Vlmc-devel mailing list