Commit 9ef8e805 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Update the global duration when a clip is removed

parent 73cd7de1
......@@ -373,6 +373,7 @@ void TracksView::removeMediaItem( AbstractGraphicsMediaItem* item )
void TracksView::removeMediaItem( const QList<AbstractGraphicsMediaItem*>& items )
{
bool needUpdate = false;
for ( int i = 0; i < items.size(); ++i )
{
GraphicsMovieItem* movieItem = qgraphicsitem_cast<GraphicsMovieItem*>( items.at( i ) );
......@@ -384,7 +385,10 @@ void TracksView::removeMediaItem( const QList<AbstractGraphicsMediaItem*>& items
}
delete movieItem;
needUpdate = true;
}
if ( needUpdate ) updateDuration();
}
void TracksView::dragLeaveEvent( QDragLeaveEvent* event )
......
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