aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/eventeditor/libkvieventeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/eventeditor/libkvieventeditor.cpp')
-rw-r--r--src/modules/eventeditor/libkvieventeditor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/eventeditor/libkvieventeditor.cpp b/src/modules/eventeditor/libkvieventeditor.cpp
index cbde52a4c..b605aab34 100644
--- a/src/modules/eventeditor/libkvieventeditor.cpp
+++ b/src/modules/eventeditor/libkvieventeditor.cpp
@@ -45,12 +45,12 @@ EventEditorWindow * g_pEventEditorWindow = 0;
Opens the script event editor dialog.
*/
-static bool eventeditor_kvs_cmd_open(KviKvsModuleCommandCall * c)
+static bool eventeditor_kvs_cmd_open(KviKvsModuleCommandCall *)
{
if(!g_pEventEditorWindow)
{
- g_pEventEditorWindow = new EventEditorWindow(c->window()->frame());
- c->window()->frame()->addWindow(g_pEventEditorWindow);
+ g_pEventEditorWindow = new EventEditorWindow();
+ g_pMainWindow->addWindow(g_pEventEditorWindow);
}
g_pEventEditorWindow->setFocus();