diff --git a/src/GetNewStuffModel.cpp b/src/GetNewStuffModel.cpp index 2cc6a3ca9..cb2aa99cc 100644 --- a/src/GetNewStuffModel.cpp +++ b/src/GetNewStuffModel.cpp @@ -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() ] ); diff --git a/src/libtomahawk/AtticaManager.h b/src/libtomahawk/AtticaManager.h index 4708c2bee..ac0299af9 100644 --- a/src/libtomahawk/AtticaManager.h +++ b/src/libtomahawk/AtticaManager.h @@ -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 );