aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/raweditor
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/raweditor')
-rw-r--r--src/modules/raweditor/RawEditorWindow.cpp4
-rw-r--r--src/modules/raweditor/RawEditorWindow.h2
-rw-r--r--src/modules/raweditor/libkviraweditor.cpp6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/raweditor/RawEditorWindow.cpp b/src/modules/raweditor/RawEditorWindow.cpp
index 21c3476ce..6d3d67386 100644
--- a/src/modules/raweditor/RawEditorWindow.cpp
+++ b/src/modules/raweditor/RawEditorWindow.cpp
@@ -463,8 +463,8 @@ void RawEditorWidget::exportAllEvents()
}
-RawEditorWindow::RawEditorWindow(KviMainWindow * lpFrm)
-: KviWindow(KviWindow::ScriptEditor,lpFrm,"raweditor",0)
+RawEditorWindow::RawEditorWindow()
+: KviWindow(KviWindow::ScriptEditor,"raweditor",0)
{
g_pRawEditorWindow = this;
diff --git a/src/modules/raweditor/RawEditorWindow.h b/src/modules/raweditor/RawEditorWindow.h
index 6d2d9823c..81f45b3b0 100644
--- a/src/modules/raweditor/RawEditorWindow.h
+++ b/src/modules/raweditor/RawEditorWindow.h
@@ -122,7 +122,7 @@ class RawEditorWindow : public KviWindow
{
Q_OBJECT
public:
- RawEditorWindow(KviMainWindow * lpFrm);
+ RawEditorWindow();
~RawEditorWindow();
protected:
RawEditorWidget * m_pEditor;
diff --git a/src/modules/raweditor/libkviraweditor.cpp b/src/modules/raweditor/libkviraweditor.cpp
index 350c3fbbe..73ebac4f2 100644
--- a/src/modules/raweditor/libkviraweditor.cpp
+++ b/src/modules/raweditor/libkviraweditor.cpp
@@ -46,12 +46,12 @@ RawEditorWindow * g_pRawEditorWindow = 0;
Opens the script raw events editor dialog.
*/
-static bool raweditor_kvs_cmd_open(KviKvsModuleCommandCall * c)
+static bool raweditor_kvs_cmd_open(KviKvsModuleCommandCall *)
{
if(!g_pRawEditorWindow)
{
- g_pRawEditorWindow = new RawEditorWindow(c->window()->frame());
- c->window()->frame()->addWindow(g_pRawEditorWindow);
+ g_pRawEditorWindow = new RawEditorWindow();
+ g_pMainWindow->addWindow(g_pRawEditorWindow);
}
g_pRawEditorWindow->setFocus();
return true;