summaryrefslogtreecommitdiff
path: root/src/gui/windows/registerdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/registerdialog.cpp')
-rw-r--r--src/gui/windows/registerdialog.cpp4
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