diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 19:34:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 19:34:25 +0300 |
commit | 828a0879bfdeb2a8fe2ca37cb54694266705a4cf (patch) | |
tree | 1c8562f2d55fb6c3f974ae6014c4856278903a7a | |
parent | d6b5d6dc786ea93c146011169d3fae04f3306156 (diff) | |
download | plus-828a0879bfdeb2a8fe2ca37cb54694266705a4cf.tar.gz plus-828a0879bfdeb2a8fe2ca37cb54694266705a4cf.tar.bz2 plus-828a0879bfdeb2a8fe2ca37cb54694266705a4cf.tar.xz plus-828a0879bfdeb2a8fe2ca37cb54694266705a4cf.zip |
Use CREATEWIDGET macro in charcreatedialog.
-rw-r--r-- | src/gui/windows/charcreatedialog.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index 049d91dc6..eba1dd96e 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -30,6 +30,7 @@ #include "gui/widgets/button.h" #include "gui/windows/charselectdialog.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/label.h" #include "gui/widgets/playerbox.h" #include "gui/widgets/slider.h" @@ -372,8 +373,9 @@ void CharCreateDialog::action(const ActionEvent &event) } else { - // TRANSLATORS: char creation error - (new OkDialog(_("Error"), + CREATEWIDGET(OkDialog, + // TRANSLATORS: char creation error + _("Error"), // TRANSLATORS: char creation error _("Your name needs to be at least 4 characters."), // TRANSLATORS: ok dialog button @@ -382,7 +384,7 @@ void CharCreateDialog::action(const ActionEvent &event) Modal_true, ShowCenter_true, nullptr, - 260))->postInit(); + 260); } } else if (id == "cancel") |