1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

* Fixed crash in DbCmd_Resolve.

This commit is contained in:
Christian Muehlhaeuser
2011-05-30 04:59:59 +02:00
parent f5749a5db2
commit 873fe1297a

View File

@@ -42,10 +42,10 @@ DatabaseCommand_Resolve::exec( DatabaseImpl* lib )
qDebug() << "Using result-hint to speed up resolving:" << m_query->resultHint();
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() << "Source null:" << result->collection()->source().isNull();
if ( !result.isNull() && result->collection()->source()->isOnline() )
qDebug() << "Source null:" << result->collection()->source().isNull();*/
if ( !result.isNull() && !result->collection().isNull() && result->collection()->source()->isOnline() )
{
res << result;
emit results( m_query->id(), res );