From bb72c3efb2bc0bb1d972a886e5c7f11faf78199c Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sun, 21 Aug 2011 00:54:24 +0200 Subject: [PATCH] correctly check for isNull --- src/libtomahawk/dropjob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtomahawk/dropjob.cpp b/src/libtomahawk/dropjob.cpp index 6f1a79d2e..312c9d438 100644 --- a/src/libtomahawk/dropjob.cpp +++ b/src/libtomahawk/dropjob.cpp @@ -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 )