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:
parent
5acfc9bbdf
commit
ae039731b6
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user