mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-03 12:47:45 +02:00
correctly check for isNull
This commit is contained in:
@@ -403,7 +403,7 @@ DropJob::removeRemoteSources()
|
|||||||
bool hasLocalSource = false;
|
bool hasLocalSource = false;
|
||||||
foreach ( const Tomahawk::result_ptr& result, item->results() )
|
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;
|
hasLocalSource = true;
|
||||||
}
|
}
|
||||||
if ( hasLocalSource )
|
if ( hasLocalSource )
|
||||||
|
Reference in New Issue
Block a user