Skip to content
Snippets Groups Projects
Commit 9d6d2db0 authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen
Browse files

Media: Also consider IFile::Type::Entire as potential main file

parent c2587cf2
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,8 @@ Media::Media( medialibrary::MediaPtr media, const QUuid& uuid /* = QUuid() */ )
Q_ASSERT( files.size() > 0 );
for ( const auto& f : files )
{
if ( f->type() == medialibrary::IFile::Type::Main )
if ( f->type() == medialibrary::IFile::Type::Entire ||
f->type() == medialibrary::IFile::Type::Main )
{
m_mlFile = f;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment