1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-08 23:26:40 +02:00

* Always initialize the style option, so we set the right selection state.

This commit is contained in:
Christian Muehlhaeuser
2013-04-26 07:17:26 +02:00
parent 8c4f6d7917
commit 8c06c3ab6a

View File

@@ -122,11 +122,9 @@ PlaylistLargeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem&
} }
} }
} }
else
prepareStyleOption( &opt, index, item ); prepareStyleOption( &opt, index, item );
opt.text.clear(); opt.text.clear();
qApp->style()->drawControl( QStyle::CE_ItemViewItem, &opt, painter ); qApp->style()->drawControl( QStyle::CE_ItemViewItem, &opt, painter );
if ( m_view->header()->visualIndex( index.column() ) > 0 ) if ( m_view->header()->visualIndex( index.column() ) > 0 )