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

Write a null value for the composer id if there's no composer.

This commit is contained in:
Teo Mrnjavac 2011-11-23 19:53:55 +01:00 committed by Dominik Schmidt
parent 06374586e0
commit b8a38f7eda

View File

@ -142,8 +142,6 @@ DatabaseCommand_AddFiles::exec( DatabaseImpl* dbi )
if( !composer.trimmed().isEmpty() )
composerid = dbi->artistId( composer, true );
/*if( composerid < 1 )
continue;*/
// Now add the association
query_filejoin.bindValue( 0, fileid );
@ -151,7 +149,7 @@ DatabaseCommand_AddFiles::exec( DatabaseImpl* dbi )
query_filejoin.bindValue( 2, albumid > 0 ? albumid : QVariant( QVariant::Int ) );
query_filejoin.bindValue( 3, trackid );
query_filejoin.bindValue( 4, albumpos );
query_filejoin.bindValue( 5, composerid );
query_filejoin.bindValue( 5, composerid > 0 ? composerid : QVariant( QVariant::Int ) );
query_filejoin.bindValue( 6, discnumber );
if ( !query_filejoin.exec() )
{