1
0
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:
Christian Muehlhaeuser
2011-06-21 06:32:45 +02:00
parent 4006452d15
commit b5180f33b8

View File

@@ -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();
} }