Don't specify a severity when traversing the filtered list.

This commit is contained in:
Jeff Young 2022-07-24 08:37:15 +01:00
parent 0604d7b813
commit 74b9ff5865
1 changed files with 2 additions and 2 deletions

View File

@ -498,7 +498,7 @@ void RC_TREE_MODEL::DeleteItems( bool aCurrentOnly, bool aIncludeExclusions, boo
if( !m_rcItemsProvider ) if( !m_rcItemsProvider )
return; return;
for( int i = m_rcItemsProvider->GetCount( m_severities ) - 1; i >= 0; --i ) for( int i = m_rcItemsProvider->GetCount() - 1; i >= 0; --i )
{ {
std::shared_ptr<RC_ITEM> rcItem = m_rcItemsProvider->GetItem( i ); std::shared_ptr<RC_ITEM> rcItem = m_rcItemsProvider->GetItem( i );
MARKER_BASE* marker = rcItem->GetParent(); MARKER_BASE* marker = rcItem->GetParent();
@ -555,7 +555,7 @@ void RC_TREE_MODEL::DeleteItems( bool aCurrentOnly, bool aIncludeExclusions, boo
for( RC_TREE_NODE* item : to_delete ) for( RC_TREE_NODE* item : to_delete )
delete( item ); delete( item );
if( !aCurrentOnly ) if( !aCurrentOnly && aDeep )
m_rcItemsProvider->DeleteAllItems( aIncludeExclusions, aDeep ); m_rcItemsProvider->DeleteAllItems( aIncludeExclusions, aDeep );
if( m_view ) if( m_view )