From 873fe1297a484aff6d79213246deb8f482b4c7ca Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 30 May 2011 04:59:59 +0200 Subject: [PATCH] * Fixed crash in DbCmd_Resolve. --- src/libtomahawk/database/databasecommand_resolve.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libtomahawk/database/databasecommand_resolve.cpp b/src/libtomahawk/database/databasecommand_resolve.cpp index 5fa2fa1d7..18975a8a5 100644 --- a/src/libtomahawk/database/databasecommand_resolve.cpp +++ b/src/libtomahawk/database/databasecommand_resolve.cpp @@ -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 );