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

Don't re-fetch charts on nam change

This commit is contained in:
Leo Franchi 2011-11-03 20:51:00 -04:00
parent 8152207334
commit 52b77464f1
2 changed files with 6 additions and 1 deletions

View File

@ -75,7 +75,8 @@ ChartsPlugin::namChangedSlot( QNetworkAccessManager *nam )
/// Then get each chart from resource
/// We want to prepopulate the breadcrumb to fetch them before they are asked for
if( !m_chartResources.isEmpty() && m_nam ){
if ( !m_chartResources.isEmpty() && m_nam && m_allChartsMap.isEmpty() )
{
tDebug() << "ChartsPlugin: InfoChart fetching possible resources";
foreach ( QVariant resource, m_chartResources )

View File

@ -66,6 +66,10 @@ SpotifyPlugin::namChangedSlot( QNetworkAccessManager *nam )
m_nam = QWeakPointer< QNetworkAccessManager >( nam );
// we never need to re-fetch
if ( !m_allChartsMap.isEmpty() )
return;
/// We need to fetch possible types before they are asked for
tDebug() << "SpotifyPlugin: InfoChart fetching possible resources";