diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 18:29:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 18:29:50 +0300 |
commit | 16bd57f5bff8365f85b4d22e693ada622f70717d (patch) | |
tree | 414f5a63b41b63f0c54c108fd66500dfe83d6385 /src/gui/windows/changepassworddialog.cpp | |
parent | 6afa5656fd99eee1fb288267fecbf704e31d293b (diff) | |
download | ManaVerse-16bd57f5bff8365f85b4d22e693ada622f70717d.tar.gz ManaVerse-16bd57f5bff8365f85b4d22e693ada622f70717d.tar.bz2 ManaVerse-16bd57f5bff8365f85b4d22e693ada622f70717d.tar.xz ManaVerse-16bd57f5bff8365f85b4d22e693ada622f70717d.zip |
Use CREATEWIDGET macro in changepassworddialog.
Diffstat (limited to 'src/gui/windows/changepassworddialog.cpp')
-rw-r--r-- | src/gui/windows/changepassworddialog.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/windows/changepassworddialog.cpp b/src/gui/windows/changepassworddialog.cpp index fda845d39..cd2207a9f 100644 --- a/src/gui/windows/changepassworddialog.cpp +++ b/src/gui/windows/changepassworddialog.cpp @@ -27,6 +27,7 @@ #include "gui/windows/okdialog.h" #include "gui/widgets/button.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/passwordfield.h" #include "gui/widgets/label.h" #include "gui/widgets/layoutcell.h" @@ -150,8 +151,9 @@ void ChangePasswordDialog::action(const ActionEvent &event) else // if (error == 3) mWrongDataNoticeListener->setTarget(this->mSecondPassField); - // TRANSLATORS: change password error header - OkDialog *const dlg = new OkDialog(_("Error"), + OkDialog *const dlg = CREATEWIDGETR(OkDialog, + // TRANSLATORS: change password error header + _("Error"), errorMsg.str(), // TRANSLATORS: ok dialog button _("OK"), @@ -160,7 +162,6 @@ void ChangePasswordDialog::action(const ActionEvent &event) ShowCenter_true, nullptr, 260); - dlg->postInit(); dlg->addActionListener(mWrongDataNoticeListener); } else |