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