mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
* Set stats for the right collection.
This commit is contained in:
@@ -429,7 +429,7 @@ Source::updateTracks()
|
|||||||
// Re-calculate local db stats
|
// Re-calculate local db stats
|
||||||
DatabaseCommand_CollectionStats* cmd = new DatabaseCommand_CollectionStats( SourceList::instance()->get( id() ) );
|
DatabaseCommand_CollectionStats* cmd = new DatabaseCommand_CollectionStats( SourceList::instance()->get( id() ) );
|
||||||
connect( cmd, SIGNAL( done( QVariantMap ) ),
|
connect( cmd, SIGNAL( done( QVariantMap ) ),
|
||||||
SourceList::instance()->getLocal().data(), SLOT( setStats( QVariantMap ) ), Qt::QueuedConnection );
|
this, SLOT( setStats( QVariantMap ) ), Qt::QueuedConnection );
|
||||||
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>( cmd ) );
|
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>( cmd ) );
|
||||||
|
|
||||||
connect( cmd, SIGNAL( finished() ), SIGNAL( stateChanged() ) );
|
connect( cmd, SIGNAL( finished() ), SIGNAL( stateChanged() ) );
|
||||||
|
Reference in New Issue
Block a user