mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +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;
|
||||
|
||||
const Tomahawk::query_ptr& q = pi->query();
|
||||
if( q.isNull() ) // uh oh? filter out invalid queries i guess
|
||||
return false;
|
||||
|
||||
Tomahawk::result_ptr r;
|
||||
if ( q->numResults() )
|
||||
r = q->results().first();
|
||||
|
Reference in New Issue
Block a user