From 378aae9567825d7bacfb65ad6ada01c05e9ae0e5 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Wed, 19 Oct 2011 19:37:46 -0400 Subject: [PATCH] Fix commit also with no attica --- src/GetNewStuffModel.cpp | 2 +- src/libtomahawk/AtticaManager.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 );