From dbd313b13d44c9776ccb4f17dc4e979483cd7552 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 20:33:41 +0300 Subject: Use CREATEWIDGET macro in registerdialog. --- src/gui/windows/registerdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/windows/registerdialog.cpp') 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 -- cgit v1.2.3-70-g09d2