mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Fetch album covers if albums were added before model was attached to view
This commit is contained in:
@@ -211,7 +211,6 @@ ChartsPlugin::notInCacheSlot( uint requestId, QHash<QString, QString> criteria,
|
|||||||
{
|
{
|
||||||
case InfoChart:
|
case InfoChart:
|
||||||
{
|
{
|
||||||
|
|
||||||
/// Fetch the chart, we need source and id
|
/// 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"] ) );
|
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;
|
qDebug() << Q_FUNC_INFO << "Getting chart url" << url;
|
||||||
@@ -395,7 +394,7 @@ ChartsPlugin::chartReturned()
|
|||||||
setChartType( None );
|
setChartType( None );
|
||||||
|
|
||||||
|
|
||||||
qDebug() << "Got chart returned!" << res;
|
// qDebug() << "Got chart returned!" << res;
|
||||||
foreach ( QVariant chartR, chartResponse )
|
foreach ( QVariant chartR, chartResponse )
|
||||||
{
|
{
|
||||||
QString title, artist, album;
|
QString title, artist, album;
|
||||||
|
@@ -105,6 +105,7 @@ AlbumView::setAlbumModel( AlbumModel* model )
|
|||||||
connect( m_proxyModel, SIGNAL( rowsInserted( QModelIndex, int, int ) ), SLOT( onViewChanged() ) );
|
connect( m_proxyModel, SIGNAL( rowsInserted( QModelIndex, int, int ) ), SLOT( onViewChanged() ) );
|
||||||
|
|
||||||
setAcceptDrops( false );
|
setAcceptDrops( false );
|
||||||
|
onViewChanged(); // Fetch covers if albums were added to model before model was attached to view
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user