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:
parent
6408d93dc0
commit
19d3cf5bae
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user