1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

Fetch album covers if albums were added before model was attached to view

This commit is contained in:
Leo Franchi 2011-10-15 19:29:27 -04:00
parent a937ac265c
commit b3bfc2b464
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,6 @@ ChartsPlugin::notInCacheSlot( uint requestId, QHash<QString, QString> criteria,
{
case InfoChart:
{
/// Fetch the chart, we need source and id
QUrl url = QUrl( QString( CHART_URL "source/%1/chart/%2" ).arg( criteria["chart_source"] ).arg( criteria["chart_id"] ) );
qDebug() << Q_FUNC_INFO << "Getting chart url" << url;
@ -395,7 +394,7 @@ ChartsPlugin::chartReturned()
setChartType( None );
qDebug() << "Got chart returned!" << res;
// qDebug() << "Got chart returned!" << res;
foreach ( QVariant chartR, chartResponse )
{
QString title, artist, album;

View File

@ -105,6 +105,7 @@ AlbumView::setAlbumModel( AlbumModel* model )
connect( m_proxyModel, SIGNAL( rowsInserted( QModelIndex, int, int ) ), SLOT( onViewChanged() ) );
setAcceptDrops( false );
onViewChanged(); // Fetch covers if albums were added to model before model was attached to view
}