Commit eb69e928 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Fix a deletion bug in the media library

parent 218f7b1b
......@@ -54,8 +54,10 @@ void MediaListViewController::mediaDeletion( const QUuid& uuid )
void MediaListViewController::mediaRemoved( const QUuid& uuid )
{
removeCell( m_cells->value( uuid ) );
QWidget* cell = m_cells->value( uuid );
removeCell( cell );
m_cells->remove( uuid );
delete cell;
m_currentUuid = QUuid();
}
......
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