mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 10:05:32 +02:00
* Fixed crash in DbCmd_Resolve.
This commit is contained in:
@@ -42,10 +42,10 @@ DatabaseCommand_Resolve::exec( DatabaseImpl* lib )
|
|||||||
qDebug() << "Using result-hint to speed up resolving:" << m_query->resultHint();
|
qDebug() << "Using result-hint to speed up resolving:" << m_query->resultHint();
|
||||||
|
|
||||||
Tomahawk::result_ptr result = lib->resultFromHint( m_query );
|
Tomahawk::result_ptr result = lib->resultFromHint( m_query );
|
||||||
qDebug() << "Collection null:" << result.isNull();
|
/* qDebug() << "Result null:" << result.isNull();
|
||||||
qDebug() << "Collection null:" << result->collection().isNull();
|
qDebug() << "Collection null:" << result->collection().isNull();
|
||||||
qDebug() << "Source null:" << result->collection()->source().isNull();
|
qDebug() << "Source null:" << result->collection()->source().isNull();*/
|
||||||
if ( !result.isNull() && result->collection()->source()->isOnline() )
|
if ( !result.isNull() && !result->collection().isNull() && result->collection()->source()->isOnline() )
|
||||||
{
|
{
|
||||||
res << result;
|
res << result;
|
||||||
emit results( m_query->id(), res );
|
emit results( m_query->id(), res );
|
||||||
|
Reference in New Issue
Block a user