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

TracksView: Fixing clip adding by drag and drop.

parent c54ff0ab
......@@ -670,6 +670,8 @@ TracksView::dropEvent( QDropEvent *event )
if ( m_dragAudioItem )
{
m_clipsLoaded.insert( m_dragAudioItem->clipHelper()->uuid() );
updateDuration();
if ( getTrack( Workflow::AudioTrack, m_numAudioTrack - 1 )->childItems().count() > 0 )
addTrack( Workflow::AudioTrack );
......@@ -686,6 +688,8 @@ TracksView::dropEvent( QDropEvent *event )
if ( m_dragVideoItem )
{
m_clipsLoaded.insert( m_dragVideoItem->clipHelper()->uuid() );
updateDuration();
if ( getTrack( Workflow::VideoTrack, m_numVideoTrack - 1 )->childItems().count() > 0 )
addTrack( Workflow::VideoTrack );
......
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