From 8b477e1f71405cf88ab309b17a89980513f13836 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell <tomahawk@jefferai.org> Date: Fri, 30 Sep 2011 17:10:38 -0400 Subject: [PATCH] I'm an idiot --- src/libtomahawk/database/databasecommand_deletefiles.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/libtomahawk/database/databasecommand_deletefiles.cpp b/src/libtomahawk/database/databasecommand_deletefiles.cpp index 27c2099f7..661c875d8 100644 --- a/src/libtomahawk/database/databasecommand_deletefiles.cpp +++ b/src/libtomahawk/database/databasecommand_deletefiles.cpp @@ -128,13 +128,11 @@ DatabaseCommand_DeleteFiles::exec( DatabaseImpl* dbi ) dirquery.exec(); while ( dirquery.next() ) - m_files << dirquery.value( 0 ).toString(); + m_ids << dirquery.value( 0 ).toString(); } - else - { - foreach( const QVariant& id, m_ids ) + + foreach( const QVariant& id, m_ids ) m_files << QString( "servent://%1\t%2" ).arg( source()->userName() ).arg( id.toString() ); - } } if ( m_deleteAll )