diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 18:44:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 18:44:12 +0300 |
commit | 386469715bd21da1b7a662761d8266f409813ff6 (patch) | |
tree | f98d08feab1e15700f3498f5944d92f3ef986c03 /src/gui/windows | |
parent | 302cfec640515a49d3a88c301be74ee6fd885312 (diff) | |
download | manaverse-386469715bd21da1b7a662761d8266f409813ff6.tar.gz manaverse-386469715bd21da1b7a662761d8266f409813ff6.tar.bz2 manaverse-386469715bd21da1b7a662761d8266f409813ff6.tar.xz manaverse-386469715bd21da1b7a662761d8266f409813ff6.zip |
Use CREATEWIDGET macro in logindialog.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/logindialog.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp index 5203bc228..c783abed8 100644 --- a/src/gui/windows/logindialog.cpp +++ b/src/gui/windows/logindialog.cpp @@ -34,6 +34,7 @@ #include "gui/widgets/button.h" #include "gui/widgets/checkbox.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/dropdown.h" #include "gui/widgets/label.h" #include "gui/widgets/passwordfield.h" @@ -224,10 +225,13 @@ void LoginDialog::action(const ActionEvent &event) { const std::string &url = mLoginData->registerUrl; urlListener.url = url; - // TRANSLATORS: question dialog - ConfirmDialog *const confirmDlg = new ConfirmDialog( - _("Open register url"), url, SOUND_REQUEST, false, Modal_true); - confirmDlg->postInit(); + ConfirmDialog *const confirmDlg = CREATEWIDGETR(ConfirmDialog, + // TRANSLATORS: question dialog + _("Open register url"), + url, + SOUND_REQUEST, + false, + Modal_true); confirmDlg->addActionListener(&urlListener); } } |