mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* No need to fetch collection stats manually after adding files.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||||
*
|
*
|
||||||
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||||
*
|
*
|
||||||
* Tomahawk is free software: you can redistribute it and/or modify
|
* Tomahawk is free software: you can redistribute it and/or modify
|
||||||
@@ -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