1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-10-05 10:03:43 +02:00

Automatically upgrade resolvers

This commit is contained in:
Leo Franchi
2011-11-17 14:18:24 -05:00
parent 9f1ec0ce93
commit ca14fbf0aa
2 changed files with 8 additions and 2 deletions

View File

@@ -45,6 +45,8 @@ AtticaManager::AtticaManager( QObject* parent )
// resolvers
m_manager.addProviderFile( QUrl( "http://bakery.tomahawk-player.org:10480/resolvers/providers.xml" ) );
qRegisterMetaType< Attica::Content >( "Attica::Content" );
}
@@ -274,6 +276,7 @@ AtticaManager::syncServerData()
if ( newerVersion( r.version, upstream.version() ) )
{
m_resolverStates[ id ].state = NeedsUpgrade;
QMetaObject::invokeMethod( this, "upgradeResolver", Qt::QueuedConnection, Q_ARG( Attica::Content, upstream ) );
}
}
}