mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* No need to fetch collection stats manually after adding files.
This commit is contained in:
@@ -69,12 +69,6 @@ DatabaseCommand_AddFiles::postCommitHook()
|
|||||||
|
|
||||||
emit notify( m_queries );
|
emit notify( m_queries );
|
||||||
|
|
||||||
// also re-calc the collection stats, to updates the "X tracks" in the sidebar etc:
|
|
||||||
DatabaseCommand_CollectionStats* cmd = new DatabaseCommand_CollectionStats( source() );
|
|
||||||
connect( cmd, SIGNAL( done( QVariantMap ) ),
|
|
||||||
source().data(), SLOT( setStats( QVariantMap ) ), Qt::QueuedConnection );
|
|
||||||
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>( cmd ) );
|
|
||||||
|
|
||||||
if( source()->isLocal() )
|
if( source()->isLocal() )
|
||||||
Servent::instance()->triggerDBSync();
|
Servent::instance()->triggerDBSync();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user