diff --git a/src/libtomahawk/database/databasecommand_deletefiles.cpp b/src/libtomahawk/database/databasecommand_deletefiles.cpp index fe227ac11..ac45e9f58 100644 --- a/src/libtomahawk/database/databasecommand_deletefiles.cpp +++ b/src/libtomahawk/database/databasecommand_deletefiles.cpp @@ -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;