aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/actioneditor/libkviactioneditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/actioneditor/libkviactioneditor.cpp')
-rw-r--r--src/modules/actioneditor/libkviactioneditor.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}