1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-22 16:59:58 +01:00

* Fixed track hover rect in sidebar.

This commit is contained in:
Christian Muehlhaeuser 2013-01-21 13:38:38 +01:00
parent 73977f58d3
commit e6b3884003

View File

@ -270,8 +270,8 @@ SourceDelegate::paintCollection( QPainter* painter, const QStyleOptionViewItem&
painter->setPen( descColor );
painter->drawText( textRect, text, to );
if ( colItem->source() && colItem->source()->currentTrack() )
m_trackRects[ index ] = textRect;
if ( colItem->source() && colItem->source()->currentTrack() && colItem->source()->state() == DBSyncConnection::SYNCED )
m_trackRects[ index ] = textRect.adjusted( 0, 0, -textRect.width() + painter->fontMetrics().width( text ), 0 );
else
m_trackRects.remove( index );