1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-20 07:52:30 +02:00

* Don't request covers for tracks in the flat view.

This commit is contained in:
Christian Muehlhaeuser 2012-03-15 08:52:03 +01:00
parent 6408d93dc0
commit 19d3cf5bae
2 changed files with 6 additions and 0 deletions

View File

@ -261,6 +261,9 @@ TrackModel::headerData( int section, Qt::Orientation orientation, int role ) con
void
TrackModel::getCover( const QModelIndex& index )
{
if ( style() != TrackModel::Short )
return;
TrackModelItem* item = itemFromIndex( index );
if ( !item->query().isNull() )
item->query()->cover( QSize( 0, 0 ) );

View File

@ -163,6 +163,9 @@ TrackView::setTrackModel( TrackModel* model )
void
TrackView::onViewChanged()
{
if ( m_model->style() != TrackModel::Short ) // eventual FIXME?
return;
if ( m_timer.isActive() )
m_timer.stop();