1
0
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:
Christian Muehlhaeuser 2012-03-29 19:02:06 +02:00
parent 47774c3894
commit a4421df9e9

View File

@ -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 );