mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-01 14:42:25 +02:00
Extra pointer safety
This commit is contained in:
parent
5c2da3d835
commit
479262c846
@ -204,7 +204,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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user