1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

Hopefully fix delete problems

This commit is contained in:
Jeff Mitchell 2011-10-11 08:47:44 -04:00
parent bd4d5da641
commit d2dc3082b1

View File

@ -167,8 +167,8 @@ DatabaseCommand_DeleteFiles::exec( DatabaseImpl* dbi )
QString idstring;
foreach( const QVariant& id, m_ids )
idstring.append( '"' + id.toString() + "\", " );
idstring.chop( 3 ); //remove the trailing "\", "
idstring.append( id.toString() + ", " );
idstring.chop( 2 ); //remove the trailing ", "
delquery.bindValue( 0, idstring );
tDebug() << Q_FUNC_INFO << " bound idstring: " << idstring;