aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/system
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/system')
-rw-r--r--src/modules/system/plugin.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/system/plugin.cpp b/src/modules/system/plugin.cpp
index b214c4aab..b937957da 100644
--- a/src/modules/system/plugin.cpp
+++ b/src/modules/system/plugin.cpp
@@ -347,9 +347,9 @@ bool KviPluginManager::checkUnload()
it.current()->unload();
m_pPluginDict->remove(it.currentKey());
} else {
- m_pPluginDict++;
m_bCanUnload = false;
}
+ it.moveNext();
}
return m_bCanUnload;
@@ -361,8 +361,9 @@ void KviPluginManager::unloadAll()
while(it.current())
{
- it.current()->unload();
- m_pPluginDict->remove(it.currentKey());
+ it.current()->unload();
+ m_pPluginDict->remove(it.currentKey());
+ it.moveNext();
}
}