From b5180f33b8986ada8e0b9a131b521aedf9db65d7 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Tue, 21 Jun 2011 06:32:45 +0200 Subject: [PATCH] * No need to fetch collection stats manually after adding files. --- src/libtomahawk/database/databasecommand_addfiles.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/libtomahawk/database/databasecommand_addfiles.cpp b/src/libtomahawk/database/databasecommand_addfiles.cpp index e28164290..b8a09c90a 100644 --- a/src/libtomahawk/database/databasecommand_addfiles.cpp +++ b/src/libtomahawk/database/databasecommand_addfiles.cpp @@ -1,5 +1,5 @@ /* === This file is part of Tomahawk Player - === - * + * * Copyright 2010-2011, Christian Muehlhaeuser * * Tomahawk is free software: you can redistribute it and/or modify @@ -69,12 +69,6 @@ DatabaseCommand_AddFiles::postCommitHook() 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( cmd ) ); - if( source()->isLocal() ) Servent::instance()->triggerDBSync(); }