mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Fix deleteAll
This commit is contained in:
@@ -107,6 +107,16 @@ DatabaseCommand_DeleteFiles::exec( DatabaseImpl* dbi )
|
|||||||
while ( dirquery.next() )
|
while ( dirquery.next() )
|
||||||
m_files << dirquery.value( 1 ).toString();
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user