diff --git a/applets/kicker/plugin/kastatsfavoritesmodel.cpp b/applets/kicker/plugin/kastatsfavoritesmodel.cpp index d26b865f1..400d8f2e0 100644 --- a/applets/kicker/plugin/kastatsfavoritesmodel.cpp +++ b/applets/kicker/plugin/kastatsfavoritesmodel.cpp @@ -303,13 +303,7 @@ public: m_items.removeAt(index); // Removing the entry from the cache - QMutableHashIterator> i(m_itemEntries); - while (i.hasNext()) { - i.next(); - if (i.value() == entry) { - i.remove(); - } - } + std::remove(m_itemEntries.begin(), m_itemEntries.end(), entry); endRemoveRows(); }