mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Don't request covers for tracks in the flat view.
This commit is contained in:
@@ -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 ) );
|
||||
|
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user