diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 17:56:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 17:56:27 +0300 |
commit | 7fc40dc16d5871e65c3bf61ac4cf8272fa2a03fd (patch) | |
tree | 6df42f205f7fda7ffd605ccbc8319ccaa53bb1f4 /src | |
parent | 456e03c0e942e8082f1fd67c6f852524fe300710 (diff) | |
download | mv-7fc40dc16d5871e65c3bf61ac4cf8272fa2a03fd.tar.gz mv-7fc40dc16d5871e65c3bf61ac4cf8272fa2a03fd.tar.bz2 mv-7fc40dc16d5871e65c3bf61ac4cf8272fa2a03fd.tar.xz mv-7fc40dc16d5871e65c3bf61ac4cf8272fa2a03fd.zip |
Use CREATEWIDGET macro in inputactionreplaylistener.
Diffstat (limited to 'src')
-rw-r--r-- | src/listeners/inputactionreplaylistener.cpp | 6 |
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; } |