summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 20:33:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 20:33:41 +0300
commitdbd313b13d44c9776ccb4f17dc4e979483cd7552 (patch)
tree945a7a3ef20c38704b7508a063fcd2049990c37b
parent43fbbfe4a5a0f1027847208ce8255a566eee09ad (diff)
downloadplus-dbd313b13d44c9776ccb4f17dc4e979483cd7552.tar.gz
plus-dbd313b13d44c9776ccb4f17dc4e979483cd7552.tar.bz2
plus-dbd313b13d44c9776ccb4f17dc4e979483cd7552.tar.xz
plus-dbd313b13d44c9776ccb4f17dc4e979483cd7552.zip
Use CREATEWIDGET macro in registerdialog.
-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