From 2ee6fe3de0defdf7e8af2da98ff99e16366636b9 Mon Sep 17 00:00:00 2001 From: Elvio Basello Date: Sat, 7 Jun 2008 00:29:55 +0000 Subject: fixed $system.call(); thanks to thexception git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1911 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/system/plugin.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/modules/system/plugin.cpp') 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(); } } -- cgit v1.3.1-10-gc9f91