summaryrefslogtreecommitdiffstats
path: root/amarok/src/collectiondb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'amarok/src/collectiondb.cpp')
-rw-r--r--amarok/src/collectiondb.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/amarok/src/collectiondb.cpp b/amarok/src/collectiondb.cpp
index 29db57eb..e618ae60 100644
--- a/amarok/src/collectiondb.cpp
+++ b/amarok/src/collectiondb.cpp
@@ -224,8 +224,8 @@ CollectionDB::CollectionDB()
, m_aftEnabledPersistentTables()
, m_moveFileJobCancelled( false )
{
- // We have our own thread manager
- disableThreadPostedEvents(true);
+ // Enable cross thread requests for scrobbler
+ connect(this, SIGNAL(startScrobblerSimilarArtistsFetch(const TQString &)), Scrobbler::instance(), SLOT(similarArtists(const TQString &)));
DEBUG_BLOCK
@@ -4364,8 +4364,9 @@ CollectionDB::similarArtists( const TQString &artist, uint count )
values = query( TQString( "SELECT suggestion FROM related_artists WHERE artist = '%1' ORDER BY %2 LIMIT %3 OFFSET 0;" )
.arg( escapeString( artist ), randomFunc(), TQString::number( count ) ) );
- if ( values.isEmpty() )
- Scrobbler::instance()->similarArtists( artist );
+ if ( values.isEmpty() ) {
+ startScrobblerSimilarArtistsFetch( artist );
+ }
return values;
}