From e08c6cc6a58b356a1ec29d3cccaf8ef6d70322d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bara?= Date: Sat, 5 Feb 2011 13:45:40 +0000 Subject: [PATCH] just a prettier expression --- src/core/song.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/song.cpp b/src/core/song.cpp index 62b7f8c4f..f4fba5820 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -252,10 +252,7 @@ bool Song::HasProperMediaFile() const { QMutexLocker l(&taglib_mutex_); scoped_ptr 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) {