From 68c421e00e0d2d254358153f83ee57b4d607cadb Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 28 Dec 2011 15:09:33 +0100 Subject: [PATCH] Fix after borked merge. --- src/libtomahawk/database/databasecommand_addfiles.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/libtomahawk/database/databasecommand_addfiles.cpp b/src/libtomahawk/database/databasecommand_addfiles.cpp index 31ee215fc..c764e6c48 100644 --- a/src/libtomahawk/database/databasecommand_addfiles.cpp +++ b/src/libtomahawk/database/databasecommand_addfiles.cpp @@ -92,7 +92,8 @@ DatabaseCommand_AddFiles::exec( DatabaseImpl* dbi ) { QVariant& v = *it; QVariantMap m = v.toMap(); - int fileid = 0, artistid = 0, albumid = 0, trackid = 0; + + int fileid = 0, artistid = 0, albumid = 0, trackid = 0, composerid = 0; QString url = m.value( "url" ).toString(); int mtime = m.value( "mtime" ).toInt(); @@ -109,10 +110,6 @@ DatabaseCommand_AddFiles::exec( DatabaseImpl* dbi ) uint discnumber = m.value( "discnumber" ).toUInt(); int year = m.value( "year" ).toInt(); - int fileid = 0, artistid = 0, albumid = 0, trackid = 0, composerid = 0; - query_file_del.bindValue( 0, url ); - query_file_del.exec(); - query_file.bindValue( 0, srcid ); query_file.bindValue( 1, url ); query_file.bindValue( 2, size );