Commit c972ec68 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Also match name in the library filter

parent 7d7ed50d
......@@ -231,7 +231,12 @@ void LibraryWidget::updateFilter( const QString& filter )
ListViewMediaItem* item = static_cast<ListViewMediaItem*>( mediaList->item( i ) );
if ( item != NULL )
{
item->setHidden( !(item->getClip()->matchMetaTag( filter )) );
QString filename = item->getClip()->getParent()->getFileInfo()->fileName();
if ( !filename.contains( filter, Qt::CaseInsensitive ) && !item->getClip()->matchMetaTag( filter ) )
item->setHidden( true );
else
item->setHidden( false );
}
}
}
......
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