Show all items in the directory when the name filter is cleared
author Frank Reininghaus
()
committer Frank Reininghaus
()
commit 288473a96cdd8888f7fc91d0a551d6cbde5fd5dc
tree 157e0900463e9191182c780d1a590e80efc675da
parent 98f63a671d0b8b76d69c7d4b5fc06c5837408672
Show all items in the directory when the name filter is cleared

The problem was the following: While a QMutableSetIterator iterates the
items in the QSet m_filteredItems, all items that match the new filter
are removed from the set. However, to ensure that the iterator still
reaches all items in the set, one must not use QSet::remove(), but
rather the iterator's remove() method (see QMutableSetIterator docs).

BUG: 300504
FIXED-IN: 4.8.4
dolphin/src/kitemviews/kfileitemmodel.cpp