From 191dd48c87ea174322b8c9c004f98859397ddc9f Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 19 May 2011 08:21:26 +0200 Subject: [PATCH] * Don't log empty DeleteFiles DbCmds. --- src/libtomahawk/database/databasecommand_deletefiles.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libtomahawk/database/databasecommand_deletefiles.cpp b/src/libtomahawk/database/databasecommand_deletefiles.cpp index f3675369f..02404c8b6 100644 --- a/src/libtomahawk/database/databasecommand_deletefiles.cpp +++ b/src/libtomahawk/database/databasecommand_deletefiles.cpp @@ -37,6 +37,9 @@ DatabaseCommand_DeleteFiles::postCommitHook() { qDebug() << Q_FUNC_INFO; + if ( !m_files.count() ) + return; + // make the collection object emit its tracksAdded signal, so the // collection browser will update/fade in etc. Collection* coll = source()->collection().data();