1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

I'm an idiot

This commit is contained in:
Jeff Mitchell
2011-09-30 17:10:38 -04:00
parent e021695230
commit 8b477e1f71

View File

@@ -128,14 +128,12 @@ DatabaseCommand_DeleteFiles::exec( DatabaseImpl* dbi )
dirquery.exec(); dirquery.exec();
while ( dirquery.next() ) 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() ); m_files << QString( "servent://%1\t%2" ).arg( source()->userName() ).arg( id.toString() );
} }
}
if ( m_deleteAll ) if ( m_deleteAll )
{ {