From 47546513b81eb0b18259ddb85ab2124eb9a6bf7c Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Tue, 17 Feb 2009 17:21:55 +0000 Subject: 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 --- src/modules/actioneditor/libkviactioneditor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/actioneditor/libkviactioneditor.cpp') diff --git a/src/modules/actioneditor/libkviactioneditor.cpp b/src/modules/actioneditor/libkviactioneditor.cpp index ff37090da..0741578c1 100644 --- a/src/modules/actioneditor/libkviactioneditor.cpp +++ b/src/modules/actioneditor/libkviactioneditor.cpp @@ -71,7 +71,8 @@ static bool actioneditor_module_can_unload(KviModule *) static bool actioneditor_module_cleanup(KviModule *) { - if(g_pActionEditorWindow)delete g_pActionEditorWindow; + if(g_pActionEditorWindow && g_pFrame) + g_pFrame->closeWindow(g_pActionEditorWindow); g_pActionEditorWindow = 0; return true; } -- cgit v1.3.1-10-gc9f91