mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
check for valid shared pointer here
This commit is contained in:
@@ -161,6 +161,9 @@ TrackProxyModel::filterAcceptsRow( int sourceRow, const QModelIndex& sourceParen
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
const Tomahawk::query_ptr& q = pi->query();
|
const Tomahawk::query_ptr& q = pi->query();
|
||||||
|
if( q.isNull() ) // uh oh? filter out invalid queries i guess
|
||||||
|
return false;
|
||||||
|
|
||||||
Tomahawk::result_ptr r;
|
Tomahawk::result_ptr r;
|
||||||
if ( q->numResults() )
|
if ( q->numResults() )
|
||||||
r = q->results().first();
|
r = q->results().first();
|
||||||
|
Reference in New Issue
Block a user