mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 23:26:40 +02:00
* Potential fix for rotzbouw's weird crash.
This commit is contained in:
@@ -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 );
|
QRect ir = r.adjusted( 4, 0, -option.rect.width() + option.rect.height() - 8 + r.left(), 0 );
|
||||||
|
|
||||||
if ( useAvatars )
|
if ( useAvatars )
|
||||||
|
{
|
||||||
|
if ( !source.isNull() )
|
||||||
pixmap = source->avatar( Source::FancyStyle, ir.size() );
|
pixmap = source->avatar( Source::FancyStyle, ir.size() );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
pixmap = item->query()->cover( ir.size(), false );
|
pixmap = item->query()->cover( ir.size(), false );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user