mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +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
|
void
|
||||||
TrackModel::getCover( const QModelIndex& index )
|
TrackModel::getCover( const QModelIndex& index )
|
||||||
{
|
{
|
||||||
|
if ( style() != TrackModel::Short )
|
||||||
|
return;
|
||||||
|
|
||||||
TrackModelItem* item = itemFromIndex( index );
|
TrackModelItem* item = itemFromIndex( index );
|
||||||
if ( !item->query().isNull() )
|
if ( !item->query().isNull() )
|
||||||
item->query()->cover( QSize( 0, 0 ) );
|
item->query()->cover( QSize( 0, 0 ) );
|
||||||
|
@@ -163,6 +163,9 @@ TrackView::setTrackModel( TrackModel* model )
|
|||||||
void
|
void
|
||||||
TrackView::onViewChanged()
|
TrackView::onViewChanged()
|
||||||
{
|
{
|
||||||
|
if ( m_model->style() != TrackModel::Short ) // eventual FIXME?
|
||||||
|
return;
|
||||||
|
|
||||||
if ( m_timer.isActive() )
|
if ( m_timer.isActive() )
|
||||||
m_timer.stop();
|
m_timer.stop();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user