Commit bc246ae0 authored by Clement CHAVANCE's avatar Clement CHAVANCE
Browse files

Clip deletion works again

parent 8ac2c647
......@@ -98,12 +98,12 @@ void ClipListViewController::clipDeletion( const QUuid& uuid )
{
if ( m_cells.contains( uuid ) )
{
QUuid tmp = uuid;
++m_deletion;
QWidget* cell = m_cells.value( uuid );
removeCell( cell );
m_cells.remove( uuid );
m_currentUuid = QUuid();
m_cells.remove( uuid );
emit clipDeleted( m_mediaId, uuid );
m_cells.remove( tmp );
emit clipDeleted( m_mediaId, tmp );
}
}
......@@ -104,6 +104,8 @@ void MediaListViewController::updateCell( Media* media )
void MediaListViewController::showClipList( const QUuid& uuid )
{
if ( !m_cells->contains( uuid ) )
return ;
qDebug() << "nb clips :" << Library::getInstance()->media( uuid )->clips()->size();
if ( Library::getInstance()->media( uuid ) == NULL ||
Library::getInstance()->media( uuid )->clips()->size() == 0 )
......
Supports Markdown
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