From 8c5395be0f4f7d83ebcc4a464ec31a523d0a1359 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 24 Feb 2011 03:52:02 +0100 Subject: [PATCH] * Don't start fetching covers in AlbumModel till we got caching / handling sorted out in InfoSystem. --- src/libtomahawk/playlist/albummodel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libtomahawk/playlist/albummodel.cpp b/src/libtomahawk/playlist/albummodel.cpp index 09487b670..f22d389d8 100644 --- a/src/libtomahawk/playlist/albummodel.cpp +++ b/src/libtomahawk/playlist/albummodel.cpp @@ -111,7 +111,7 @@ AlbumModel::data( const QModelIndex& index, int role ) const switch( index.column() ) { case 0: - return album->name() + "
Test\nTest2"; + return album->name(); break; } @@ -268,11 +268,11 @@ AlbumModel::onAlbumsAdded( const QList& albums, const Tomah albumitem->cover = m_defaultCover; albumitem->index = createIndex( m_rootItem->children.count() - 1, 0, albumitem ); - QString imgurl = "http://ws.audioscrobbler.com/2.0/?method=album.imageredirect&artist=%1&album=%2&size=large&api_key=7a90f6672a04b809ee309af169f34b8b"; +/* QString imgurl = "http://ws.audioscrobbler.com/2.0/?method=album.imageredirect&artist=%1&album=%2&size=large&api_key=7a90f6672a04b809ee309af169f34b8b"; QNetworkRequest req( imgurl.arg( album->artist()->name() ).arg( album->name() ) ); req.setAttribute( QNetworkRequest::User, (qlonglong)albumitem ); QNetworkReply* reply = TomahawkUtils::nam()->get( req ); - connect( reply, SIGNAL( finished() ), SLOT( onCoverArtDownloaded() ) ); + connect( reply, SIGNAL( finished() ), SLOT( onCoverArtDownloaded() ) );*/ connect( albumitem, SIGNAL( dataChanged() ), SLOT( onDataChanged() ) ); }