1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Don't auto-create when doing a load from the db.

This commit is contained in:
Leo Franchi
2011-10-12 17:41:15 -04:00
parent 189e3ea348
commit e4f8c229b4

View File

@@ -39,12 +39,12 @@ DatabaseCommand_LoadSocialActions::exec( DatabaseImpl* dbi )
QVariant srcid = source()->isLocal() ? QVariant( QVariant::Int ) : source()->id(); QVariant srcid = source()->isLocal() ? QVariant( QVariant::Int ) : source()->id();
bool autoCreate = true; bool autoCreate = false;
int artid = dbi->artistId( m_artist, autoCreate ); int artid = dbi->artistId( m_artist, autoCreate );
if( artid < 1 ) if( artid < 1 )
return; return;
autoCreate = true; // artistId overwrites autoCreate (reference) autoCreate = false; // artistId overwrites autoCreate (reference)
int trkid = dbi->trackId( artid, m_track, autoCreate ); int trkid = dbi->trackId( artid, m_track, autoCreate );
if( trkid < 1 ) if( trkid < 1 )
return; return;