1
0
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:
Michael Zanetti
2011-08-27 20:31:37 +02:00
parent 6a12e9fe04
commit f39a982e00

View File

@@ -171,7 +171,11 @@ DropJob::tracksFromQueryList( const QMimeData* data )
{ {
tDebug() << "Dropped query item:" << query->data()->artist() << "-" << query->data()->track(); 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() ); queries << getArtist( query->data()->artist() );
} }
@@ -211,9 +215,7 @@ DropJob::tracksFromResultList( const QMimeData* data )
{ {
getTopTen( q->artist() ); getTopTen( q->artist() );
} }
else else if ( m_getWholeArtists )
{
if ( m_getWholeArtists )
{ {
queries << getArtist( q->artist() ); queries << getArtist( q->artist() );
} }
@@ -228,7 +230,6 @@ DropJob::tracksFromResultList( const QMimeData* data )
} }
} }
} }
}
return queries; return queries;
} }
@@ -248,17 +249,12 @@ DropJob::tracksFromAlbumMetaData( const QMimeData *data )
stream >> album; stream >> album;
if ( m_top10 ) if ( m_top10 )
{
getTopTen( artist ); getTopTen( artist );
} else if ( m_getWholeArtists )
else
{
if ( m_getWholeArtists )
queries << getArtist( artist ); queries << getArtist( artist );
else else
queries << getAlbum( artist, album ); queries << getAlbum( artist, album );
} }
}
return queries; return queries;
} }