From a0edbf1858b40185deae5c953a6d75c18bbf894b Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 27 Sep 2013 14:22:36 +0200 Subject: [PATCH] Don't require text to be set for GenericBox --- src/libtomahawk/playlist/PlaylistItemDelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtomahawk/playlist/PlaylistItemDelegate.cpp b/src/libtomahawk/playlist/PlaylistItemDelegate.cpp index 2d92cb658..09674d54f 100644 --- a/src/libtomahawk/playlist/PlaylistItemDelegate.cpp +++ b/src/libtomahawk/playlist/PlaylistItemDelegate.cpp @@ -393,7 +393,7 @@ PlaylistItemDelegate::drawGenericBox( QPainter* painter, const QStyleOptionViewI drawRichText( painter, option, textRect, Qt::AlignVCenter|Qt::AlignRight, textDoc ); - if ( !sources.isEmpty() && !textDoc.isEmpty() ) + if ( !sources.isEmpty() ) drawRectForBox( painter, innerRect ); QRect avatarsRect = innerRect.adjusted( textDoc.idealWidth() + 3*4, 4, -4, -4 );