1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

correctly check for isNull

This commit is contained in:
Michael Zanetti 2011-08-21 00:54:24 +02:00
parent 34c8c79ef5
commit bb72c3efb2

View File

@ -403,7 +403,7 @@ DropJob::removeRemoteSources()
bool hasLocalSource = false;
foreach ( const Tomahawk::result_ptr& result, item->results() )
{
if ( result->collection()->source() && result->collection()->source()->isLocal() )
if ( !result->collection()->source().isNull() && result->collection()->source()->isLocal() )
hasLocalSource = true;
}
if ( hasLocalSource )