mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Fix commit also with no attica
This commit is contained in:
@@ -143,7 +143,7 @@ GetNewStuffModel::setData( const QModelIndex &index, const QVariant &value, int
|
|||||||
// For now only allow rating if a resolver is installed!
|
// For now only allow rating if a resolver is installed!
|
||||||
if ( state != AtticaManager::Installed && state != AtticaManager::NeedsUpgrade )
|
if ( state != AtticaManager::Installed && state != AtticaManager::NeedsUpgrade )
|
||||||
return false;
|
return false;
|
||||||
if ( AtticaManager::userHasRated( resolver ) )
|
if ( AtticaManager::instance()->userHasRated( resolver ) )
|
||||||
return false;
|
return false;
|
||||||
m_contentList[ index.row() ].setRating( value.toInt() * 20 );
|
m_contentList[ index.row() ].setRating( value.toInt() * 20 );
|
||||||
AtticaManager::instance()->uploadRating( m_contentList[ index.row() ] );
|
AtticaManager::instance()->uploadRating( m_contentList[ index.row() ] );
|
||||||
|
@@ -75,6 +75,7 @@ public:
|
|||||||
virtual ~AtticaManager() {}
|
virtual ~AtticaManager() {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static bool removeDirectory( const QString& dir );
|
||||||
#ifdef LIBATTICA_FOUND
|
#ifdef LIBATTICA_FOUND
|
||||||
|
|
||||||
bool resolversLoaded() const;
|
bool resolversLoaded() const;
|
||||||
@@ -92,7 +93,6 @@ public:
|
|||||||
void uploadRating( const Attica::Content& c );
|
void uploadRating( const Attica::Content& c );
|
||||||
bool userHasRated( const Attica::Content& c ) const;
|
bool userHasRated( const Attica::Content& c ) const;
|
||||||
|
|
||||||
static bool removeDirectory( const QString& dir );
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void resolversReloaded( const Attica::Content::List& resolvers );
|
void resolversReloaded( const Attica::Content::List& resolvers );
|
||||||
|
Reference in New Issue
Block a user