mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 09:34:53 +02:00
fix dropping of query_ptrs to Top10
This commit is contained in:
@@ -171,7 +171,11 @@ DropJob::tracksFromQueryList( const QMimeData* data )
|
||||
{
|
||||
tDebug() << "Dropped query item:" << query->data()->artist() << "-" << query->data()->track();
|
||||
|
||||
if ( m_getWholeArtists )
|
||||
if ( m_top10 )
|
||||
{
|
||||
getTopTen( query->data()->artist() );
|
||||
}
|
||||
else if ( m_getWholeArtists )
|
||||
{
|
||||
queries << getArtist( query->data()->artist() );
|
||||
}
|
||||
@@ -211,9 +215,7 @@ DropJob::tracksFromResultList( const QMimeData* data )
|
||||
{
|
||||
getTopTen( q->artist() );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( m_getWholeArtists )
|
||||
else if ( m_getWholeArtists )
|
||||
{
|
||||
queries << getArtist( q->artist() );
|
||||
}
|
||||
@@ -228,7 +230,6 @@ DropJob::tracksFromResultList( const QMimeData* data )
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return queries;
|
||||
}
|
||||
@@ -248,17 +249,12 @@ DropJob::tracksFromAlbumMetaData( const QMimeData *data )
|
||||
stream >> album;
|
||||
|
||||
if ( m_top10 )
|
||||
{
|
||||
getTopTen( artist );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( m_getWholeArtists )
|
||||
else if ( m_getWholeArtists )
|
||||
queries << getArtist( artist );
|
||||
else
|
||||
queries << getAlbum( artist, album );
|
||||
}
|
||||
}
|
||||
return queries;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user