From d2dc3082b1d6c2adc62a6cc45c5d2440df238573 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 11 Oct 2011 08:47:44 -0400 Subject: [PATCH] Hopefully fix delete problems --- src/libtomahawk/database/databasecommand_deletefiles.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;