1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 00:24:12 +02:00

Extra pointer safety

This commit is contained in:
Leo Franchi
2012-07-13 17:46:55 -04:00
committed by Christian Muehlhaeuser
parent 67d75543e6
commit 56e997a159

View File

@@ -212,7 +212,7 @@ TreeProxyModel::filterAcceptsRow( int sourceRow, const QModelIndex& sourceParent
PlayableItem* ti = sourceModel()->itemFromIndex( sourceModel()->index( i, 0, sourceParent ) );
if ( ti && ti->name() == item->name() )
if ( ti && ti->name() == item->name() && !ti->query().isNull() )
{
if ( ti->query()->albumpos() == item->query()->albumpos() || ti->query()->albumpos() == 0 || item->query()->albumpos() == 0 )
{