1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-16 05:52:15 +02:00

* Style fixes.

This commit is contained in:
Christian Muehlhaeuser 2013-09-03 23:46:00 +02:00
parent 380368380e
commit 516b8c946f
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ DatabaseCommand_Resolve::exec( DatabaseImpl* lib )
tDebug() << "Using result-hint to speed up resolving:" << m_query->resultHint();
Tomahawk::result_ptr result = lib->resultFromHint( m_query );
if ( !result.isNull() && ( result->collection().isNull() || result->collection()->source()->isOnline() ) )
if ( result && ( !result->collection() || result->collection()->source()->isOnline() ) )
{
QList<Tomahawk::result_ptr> res;
res << result;

View File

@ -659,7 +659,7 @@ Tomahawk::DatabaseImpl::resultFromHint( const Tomahawk::query_ptr& origquery )
query.bindValue( 0, fileUrl );
query.exec();
if( query.next() )
if ( query.next() )
{
QString url = query.value( 0 ).toString();
Tomahawk::source_ptr s = SourceList::instance()->get( query.value( 15 ).toUInt() );