aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/popupeditor/libkvipopupeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/popupeditor/libkvipopupeditor.cpp')
-rw-r--r--src/modules/popupeditor/libkvipopupeditor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/popupeditor/libkvipopupeditor.cpp b/src/modules/popupeditor/libkvipopupeditor.cpp
index e405e44e3..9fb5beb5c 100644
--- a/src/modules/popupeditor/libkvipopupeditor.cpp
+++ b/src/modules/popupeditor/libkvipopupeditor.cpp
@@ -46,12 +46,12 @@ PopupEditorWindow * g_pPopupEditorWindow = 0;
Opens the script popup editor dialog.
*/
-static bool popupeditor_kvs_cmd_open(KviKvsModuleCommandCall * c)
+static bool popupeditor_kvs_cmd_open(KviKvsModuleCommandCall *)
{
if(!g_pPopupEditorWindow)
{
- g_pPopupEditorWindow = new PopupEditorWindow(c->window()->frame());
- c->window()->frame()->addWindow(g_pPopupEditorWindow);
+ g_pPopupEditorWindow = new PopupEditorWindow();
+ g_pMainWindow->addWindow(g_pPopupEditorWindow);
}
g_pPopupEditorWindow->setFocus();