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:
parent
f14ae332eb
commit
70f00872a1
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user