Commit 2a8e06a2 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

MediaCellView: Fix crash introduced in previous commit.

parent 5bcf5091
......@@ -105,7 +105,12 @@ void MediaCellView::setTitle( const QString& title )
void
MediaCellView::nbClipUpdated()
{
quint32 nbClips = m_clip->getParent()->getChilds()->count();
quint32 nbClips;
if ( m_clip->isRootClip() == true )
nbClips = m_clip->getChilds()->count();
else
nbClips = m_clip->getParent()->getChilds()->count();
if ( nbClips == 0 )
{
......
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