1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 11:19:18 +01:00

just a prettier expression

This commit is contained in:
Paweł Bara 2011-02-05 13:45:40 +00:00
parent 9a9d8ad177
commit e08c6cc6a5

View File

@ -252,10 +252,7 @@ bool Song::HasProperMediaFile() const {
QMutexLocker l(&taglib_mutex_);
scoped_ptr<TagLib::FileRef> fileref(factory_->GetFileRef(d->filename_));
if(fileref->isNull())
return false;
return fileref->tag();
return !fileref->isNull() && fileref->tag();
}
void Song::InitFromFile(const QString& filename, int directory_id) {