aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/raweditor/libkviraweditor.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/raweditor/libkviraweditor.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/raweditor/libkviraweditor.cpp')
-rw-r--r--src/modules/raweditor/libkviraweditor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/raweditor/libkviraweditor.cpp b/src/modules/raweditor/libkviraweditor.cpp
index 633bb9458..6f91d7f03 100644
--- a/src/modules/raweditor/libkviraweditor.cpp
+++ b/src/modules/raweditor/libkviraweditor.cpp
@@ -71,7 +71,8 @@ static bool raweditor_module_can_unload(KviModule *)
static bool raweditor_module_cleanup(KviModule *)
{
- if(g_pRawEditorWindow)delete g_pRawEditorWindow;
+ if(g_pRawEditorWindow && g_pFrame)
+ g_pFrame->closeWindow(g_pRawEditorWindow);
g_pRawEditorWindow = 0;
return true;
}