1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

Don't use property to track fulltextness of query

This commit is contained in:
Dominik Schmidt
2016-02-16 17:07:35 +01:00
parent 37583eb57f
commit 501572bba2

View File

@@ -543,11 +543,6 @@ JSResolver::resolve( const Tomahawk::query_ptr& query )
ScriptJob* job = scriptAccount()->resolve( scriptObject(), query, "resolver" );
connect( job, SIGNAL( done( QVariantMap ) ), SLOT( onResolveRequestDone( QVariantMap ) ) );
if ( query->isFullTextQuery() )
{
job->setProperty( "isFullTextQuery", true );
}
job->start();
}
@@ -567,11 +562,14 @@ JSResolver::onResolveRequestDone( const QVariantMap& data )
}
else
{
if ( job->property( "isFullTextQuery" ).toBool() )
if ( !data.value( "artists" ).isNull() )
{
QList< artist_ptr > artists = scriptAccount()->parseArtistVariantList( data.value( "artists" ).toList() );
Tomahawk::Pipeline::instance()->reportArtists( qid, artists );
}
if ( !data.value( "albums" ).isNull() )
{
QList< album_ptr > albums = scriptAccount()->parseAlbumVariantList( data.value( "albums" ).toList() );
Tomahawk::Pipeline::instance()->reportAlbums( qid, albums );
}