Commit d4a47bf9 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Fix crash when removing a media

parent 2a0b5303
......@@ -167,9 +167,10 @@ void LibraryWidget::on_pushButtonAddMedia_clicked()
void LibraryWidget::on_pushButtonRemoveMedia_clicked()
{
QListWidget* mediaList = ( QListWidget* )( this->m_ui.LibraryTabs->currentWidget()->children().back() );
QListWidget* mediaList = ( QListWidget* )( m_ui.LibraryTabs->currentWidget()->children().back() );
ListViewMediaItem* item = ( ListViewMediaItem* ) mediaList->currentItem();
// this->removeMedia( item );
if ( !item ) return;
// removeMedia( item );
emit removingClipAsked( item->getClip()->getUuid() );
}
......
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