Skip to content

[kcms/keys] Don't remove items from list while iterating

Nicolas Fella requested to merge work/nico/remove-iterate into master

removeComponent removes the item from m_components, so we must not do that while iterating over m_components

Instead make a pass over the list, remember the to-be-deleted components, delete them, then process the rest

BUG: 477191

Merge request reports

Loading