mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Write a null value for the composer id if there's no composer.
This commit is contained in:
committed by
Dominik Schmidt
parent
06374586e0
commit
b8a38f7eda
@@ -142,8 +142,6 @@ DatabaseCommand_AddFiles::exec( DatabaseImpl* dbi )
|
|||||||
|
|
||||||
if( !composer.trimmed().isEmpty() )
|
if( !composer.trimmed().isEmpty() )
|
||||||
composerid = dbi->artistId( composer, true );
|
composerid = dbi->artistId( composer, true );
|
||||||
/*if( composerid < 1 )
|
|
||||||
continue;*/
|
|
||||||
|
|
||||||
// Now add the association
|
// Now add the association
|
||||||
query_filejoin.bindValue( 0, fileid );
|
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( 2, albumid > 0 ? albumid : QVariant( QVariant::Int ) );
|
||||||
query_filejoin.bindValue( 3, trackid );
|
query_filejoin.bindValue( 3, trackid );
|
||||||
query_filejoin.bindValue( 4, albumpos );
|
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 );
|
query_filejoin.bindValue( 6, discnumber );
|
||||||
if ( !query_filejoin.exec() )
|
if ( !query_filejoin.exec() )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user