mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 13:01:53 +02:00
check for valid shared pointer here
This commit is contained in:
parent
1211bf23b6
commit
18453f886f
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user