Commit dd30ad7f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

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

parent b4fcb670
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment