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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user