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:
parent
9a9d8ad177
commit
e08c6cc6a5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user