summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 18:24:24 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 18:24:24 +0300
commitd09e19191c7395893adbf5feaa10fa8f0839cd1d (patch)
treeac32101b5cfef38c1dcb7d9ca1ab3f0c7e59d604 /src/gui
parent89fca0c8032141a0dfdfc2f27dd5ca5ac607d747 (diff)
downloadplus-d09e19191c7395893adbf5feaa10fa8f0839cd1d.tar.gz
plus-d09e19191c7395893adbf5feaa10fa8f0839cd1d.tar.bz2
plus-d09e19191c7395893adbf5feaa10fa8f0839cd1d.tar.xz
plus-d09e19191c7395893adbf5feaa10fa8f0839cd1d.zip
Use CREATEWIDGET macro in changeemaildialog.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/changeemaildialog.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/windows/changeemaildialog.cpp b/src/gui/windows/changeemaildialog.cpp
index fdafe5fed..c5259e33a 100644
--- a/src/gui/windows/changeemaildialog.cpp
+++ b/src/gui/windows/changeemaildialog.cpp
@@ -27,6 +27,7 @@
#include "gui/windows/okdialog.h"
#include "gui/widgets/button.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/label.h"
#include "gui/widgets/textfield.h"
@@ -160,8 +161,9 @@ void ChangeEmailDialog::action(const ActionEvent &event)
else // if (error == 2)
mWrongDataNoticeListener->setTarget(this->mSecondEmailField);
- // TRANSLATORS: change email error header
- OkDialog *const dlg = new OkDialog(_("Error"),
+ OkDialog *const dlg = CREATEWIDGETR(OkDialog,
+ // TRANSLATORS: change email error header
+ _("Error"),
errorMsg.str(),
// TRANSLATORS: ok dialog button
_("OK"),
@@ -170,7 +172,6 @@ void ChangeEmailDialog::action(const ActionEvent &event)
ShowCenter_true,
nullptr,
260);
- dlg->postInit();
dlg->addActionListener(mWrongDataNoticeListener);
}
else