Don't specify a severity when traversing the filtered list.
This commit is contained in:
parent
0604d7b813
commit
74b9ff5865
|
@ -498,7 +498,7 @@ void RC_TREE_MODEL::DeleteItems( bool aCurrentOnly, bool aIncludeExclusions, boo
|
|||
if( !m_rcItemsProvider )
|
||||
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 );
|
||||
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 )
|
||||
delete( item );
|
||||
|
||||
if( !aCurrentOnly )
|
||||
if( !aCurrentOnly && aDeep )
|
||||
m_rcItemsProvider->DeleteAllItems( aIncludeExclusions, aDeep );
|
||||
|
||||
if( m_view )
|
||||
|
|
Loading…
Reference in New Issue