aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/term
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/term
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/term')
-rw-r--r--src/modules/term/libkviterm.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/term/libkviterm.cpp b/src/modules/term/libkviterm.cpp
index abdf6df92..4167697dd 100644
--- a/src/modules/term/libkviterm.cpp
+++ b/src/modules/term/libkviterm.cpp
@@ -99,10 +99,12 @@ static bool term_module_init(KviModule * m)
static bool term_module_cleanup(KviModule *)
{
#ifdef COMPILE_KDE_SUPPORT
- while(g_pTermWidgetList->first())delete g_pTermWidgetList->first();
+ while(g_pTermWidgetList->first())
+ delete g_pTermWidgetList->first();
delete g_pTermWidgetList;
g_pTermWidgetList = 0;
- while(g_pTermWindowList->first())g_pTermWindowList->first()->close();
+ while(g_pTermWindowList->first())
+ g_pTermWindowList->first()->close();
delete g_pTermWindowList;
g_pTermWindowList = 0;
#endif