Commit b4278a15 authored by Marco Martin's avatar Marco Martin
Browse files

Fix iterator

removing favorites crashed, next() has to be called
before accessing the item

Test Plan: crash--

Reviewers: #plasma, hein, ivan

Reviewed By: #plasma, ivan

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 94794350
......@@ -335,10 +335,10 @@ public:
// Removing the entry from the cache
QMutableHashIterator<QString, AbstractEntry*> i(m_itemEntries);
while (i.hasNext()) {;
if (i.value() == entry) {
delete entry;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment