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:
parent
a937ac265c
commit
b3bfc2b464
@ -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;
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user