1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-25 02:09:48 +01:00

Fix deleteAll

This commit is contained in:
Jeff Mitchell 2011-09-30 16:50:16 -04:00
parent f14ae332eb
commit 70f00872a1

View File

@ -107,6 +107,16 @@ DatabaseCommand_DeleteFiles::exec( DatabaseImpl* dbi )
while ( dirquery.next() )
m_files << dirquery.value( 1 ).toString();
}
else if ( m_deleteAll )
{
TomahawkSqlQuery dirquery = dbi->newquery();
dirquery.prepare( QString( "SELECT url FROM file WHERE source IS NULL" ) );
dirquery.exec();
while ( dirquery.next() )
m_files << dirquery.value( 0 ).toString();
}
}
else
{