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

Fix commit also with no attica

This commit is contained in:
Leo Franchi 2011-10-19 19:37:46 -04:00
parent 742f73f028
commit 378aae9567
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ GetNewStuffModel::setData( const QModelIndex &index, const QVariant &value, int
// For now only allow rating if a resolver is installed!
if ( state != AtticaManager::Installed && state != AtticaManager::NeedsUpgrade )
return false;
if ( AtticaManager::userHasRated( resolver ) )
if ( AtticaManager::instance()->userHasRated( resolver ) )
return false;
m_contentList[ index.row() ].setRating( value.toInt() * 20 );
AtticaManager::instance()->uploadRating( m_contentList[ index.row() ] );

View File

@ -75,6 +75,7 @@ public:
virtual ~AtticaManager() {}
#endif
static bool removeDirectory( const QString& dir );
#ifdef LIBATTICA_FOUND
bool resolversLoaded() const;
@ -92,7 +93,6 @@ public:
void uploadRating( const Attica::Content& c );
bool userHasRated( const Attica::Content& c ) const;
static bool removeDirectory( const QString& dir );
signals:
void resolversReloaded( const Attica::Content::List& resolvers );