aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/help/libkvihelp.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2009-02-17 17:21:55 +0000
committerGravatar Fabio Bas2009-02-17 17:21:55 +0000
commit47546513b81eb0b18259ddb85ab2124eb9a6bf7c (patch)
treec9cdfbdfbfeecd171a6d4e287b8abc0bda1884c2 /src/modules/help/libkvihelp.cpp
parentMore work on objects module (w.i.p.) (diff)
downloadKVIrc-47546513b81eb0b18259ddb85ab2124eb9a6bf7c.tar.gz
KVIrc-47546513b81eb0b18259ddb85ab2124eb9a6bf7c.tar.bz2
KVIrc-47546513b81eb0b18259ddb85ab2124eb9a6bf7c.zip
ensure that all the modules that creates a window using g_pFrame->addWindow closes the window using g_pFrame->closeWindow (that is a public member by now); This removes some remaining problems regarding mdichilds
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3080 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/help/libkvihelp.cpp')
-rw-r--r--src/modules/help/libkvihelp.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/modules/help/libkvihelp.cpp b/src/modules/help/libkvihelp.cpp
index 266fe2f9c..357ba9424 100644
--- a/src/modules/help/libkvihelp.cpp
+++ b/src/modules/help/libkvihelp.cpp
@@ -200,11 +200,14 @@ static bool help_module_init(KviModule * m)
static bool help_module_cleanup(KviModule *)
{
- if(g_pDocIndex) delete g_pDocIndex;
- while(g_pHelpWidgetList->first())delete g_pHelpWidgetList->first();
+ if(g_pDocIndex)
+ delete g_pDocIndex;
+ while(g_pHelpWidgetList->first())
+ delete g_pHelpWidgetList->first();
delete g_pHelpWidgetList;
g_pHelpWidgetList = 0;
- while(g_pHelpWindowList->first())g_pHelpWindowList->first()->close();
+ while(g_pHelpWindowList->first())
+ g_pHelpWindowList->first()->close();
delete g_pHelpWindowList;
g_pHelpWindowList = 0;
return true;