diff options
| author | 2009-02-17 17:21:55 +0000 | |
|---|---|---|
| committer | 2009-02-17 17:21:55 +0000 | |
| commit | 47546513b81eb0b18259ddb85ab2124eb9a6bf7c (patch) | |
| tree | c9cdfbdfbfeecd171a6d4e287b8abc0bda1884c2 /src/modules/popupeditor/libkvipopupeditor.cpp | |
| parent | More work on objects module (w.i.p.) (diff) | |
| download | KVIrc-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/popupeditor/libkvipopupeditor.cpp')
| -rw-r--r-- | src/modules/popupeditor/libkvipopupeditor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/popupeditor/libkvipopupeditor.cpp b/src/modules/popupeditor/libkvipopupeditor.cpp index 5b4105aae..85e689afc 100644 --- a/src/modules/popupeditor/libkvipopupeditor.cpp +++ b/src/modules/popupeditor/libkvipopupeditor.cpp @@ -72,7 +72,8 @@ static bool popupeditor_module_can_unload(KviModule *) static bool popupeditor_module_cleanup(KviModule *) { - if(g_pPopupEditorWindow)delete g_pPopupEditorWindow; + if(g_pPopupEditorWindow && g_pFrame) + g_pFrame->closeWindow(g_pPopupEditorWindow); g_pPopupEditorWindow = 0; return true; } |
