mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 01:09:42 +01:00
* Potential fix for rotzbouw's weird crash.
This commit is contained in:
parent
47774c3894
commit
a4421df9e9
@ -203,7 +203,10 @@ PlaylistItemDelegate::paintShort( QPainter* painter, const QStyleOptionViewItem&
|
||||
QRect ir = r.adjusted( 4, 0, -option.rect.width() + option.rect.height() - 8 + r.left(), 0 );
|
||||
|
||||
if ( useAvatars )
|
||||
pixmap = source->avatar( Source::FancyStyle, ir.size() );
|
||||
{
|
||||
if ( !source.isNull() )
|
||||
pixmap = source->avatar( Source::FancyStyle, ir.size() );
|
||||
}
|
||||
else
|
||||
pixmap = item->query()->cover( ir.size(), false );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user