Commit 68d791bd authored by Ludovic Fauvet's avatar Ludovic Fauvet

timeline: simplification

parent cbbf4aea
......@@ -390,8 +390,6 @@ void TracksView::moveMediaItem( AbstractGraphicsMediaItem* item, quint32 track,
break;
}
track -= 1;
Q_ASSERT( m_layout->itemAt( track )->graphicsItem() != NULL );
item->setParentItem( getTrack( item->mediaType(), track ) );
}
else if ( currentItem->trackNumber() < track )
{
......@@ -402,9 +400,9 @@ void TracksView::moveMediaItem( AbstractGraphicsMediaItem* item, quint32 track,
break;
}
track += 1;
Q_ASSERT( m_layout->itemAt( track )->graphicsItem() != NULL );
item->setParentItem( getTrack( item->mediaType(), track ) );
}
Q_ASSERT( getTrack( item->mediaType(), track ) != NULL );
item->setParentItem( getTrack( item->mediaType(), track ) );
}
}
if ( !itemCollision )
......
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