From 8c06c3ab6a16a7e3b00b02a6eb354050c15d5db4 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 26 Apr 2013 07:17:26 +0200 Subject: [PATCH] * Always initialize the style option, so we set the right selection state. --- src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp b/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp index 09992c0ed..bd31e565d 100644 --- a/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp +++ b/src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp @@ -122,11 +122,9 @@ PlaylistLargeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& } } } - else - prepareStyleOption( &opt, index, item ); + prepareStyleOption( &opt, index, item ); opt.text.clear(); - qApp->style()->drawControl( QStyle::CE_ItemViewItem, &opt, painter ); if ( m_view->header()->visualIndex( index.column() ) > 0 )