diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 20:33:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 20:33:41 +0300 |
commit | dbd313b13d44c9776ccb4f17dc4e979483cd7552 (patch) | |
tree | 945a7a3ef20c38704b7508a063fcd2049990c37b /src/gui/windows/registerdialog.cpp | |
parent | 43fbbfe4a5a0f1027847208ce8255a566eee09ad (diff) | |
download | plus-dbd313b13d44c9776ccb4f17dc4e979483cd7552.tar.gz plus-dbd313b13d44c9776ccb4f17dc4e979483cd7552.tar.bz2 plus-dbd313b13d44c9776ccb4f17dc4e979483cd7552.tar.xz plus-dbd313b13d44c9776ccb4f17dc4e979483cd7552.zip |
Use CREATEWIDGET macro in registerdialog.
Diffstat (limited to 'src/gui/windows/registerdialog.cpp')
-rw-r--r-- | src/gui/windows/registerdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp index d2c878e68..5d836f891 100644 --- a/src/gui/windows/registerdialog.cpp +++ b/src/gui/windows/registerdialog.cpp @@ -28,6 +28,7 @@ #include "gui/widgets/button.h" #include "gui/widgets/containerplacer.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/label.h" #include "gui/widgets/layoutcell.h" #include "gui/widgets/passwordfield.h" @@ -235,7 +236,7 @@ void RegisterDialog::action(const ActionEvent &event) mWrongDataNoticeListener->setTarget(this->mPasswordField); } - OkDialog *const dlg = new OkDialog( + OkDialog *const dlg = CREATEWIDGETR(OkDialog, // TRANSLATORS: error message _("Error"), errorMsg, _("OK"), DialogType::ERROR, @@ -243,7 +244,6 @@ void RegisterDialog::action(const ActionEvent &event) ShowCenter_true, nullptr, 260); - dlg->postInit(); dlg->addActionListener(mWrongDataNoticeListener); } else |