1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-22 00:42:04 +02:00

* Remove silly nesting.

This commit is contained in:
Christian Muehlhaeuser 2014-08-25 14:16:49 +02:00
parent 5acfc9bbdf
commit ae039731b6

View File

@ -310,10 +310,9 @@ Source::avatar( TomahawkUtils::ImageMode style, const QSize& size, bool defaultA
}
}
if ( d->avatarLoaded )
if ( d->avatarLoaded && d->avatar )
{
if ( d->avatar )
return d->avatar->scaled( size, Qt::KeepAspectRatio, Qt::SmoothTransformation );
return d->avatar->scaled( size, Qt::KeepAspectRatio, Qt::SmoothTransformation );
}
if ( defaultAvatarFallback )