summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/listeners/inputactionreplaylistener.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/listeners/inputactionreplaylistener.cpp b/src/listeners/inputactionreplaylistener.cpp
index 130b5fa7d..1137c8b65 100644
--- a/src/listeners/inputactionreplaylistener.cpp
+++ b/src/listeners/inputactionreplaylistener.cpp
@@ -22,6 +22,8 @@
#include "gui/windows/editdialog.h"
+#include "gui/widgets/createwidget.h"
+
#include "input/inputmanager.h"
#include "debug.h"
@@ -39,8 +41,8 @@ void InputActionReplayListener::openDialog(const std::string &caption,
const std::string &text,
const InputActionT action0)
{
- mDialog = new EditDialog(caption, text, "OK");
- mDialog->postInit();
+ CREATEWIDGETV(mDialog, EditDialog,
+ caption, text, "OK");
mDialog->addActionListener(this);
mAction = action0;
}