summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 18:44:12 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 18:44:12 +0300
commit386469715bd21da1b7a662761d8266f409813ff6 (patch)
treef98d08feab1e15700f3498f5944d92f3ef986c03 /src/gui
parent302cfec640515a49d3a88c301be74ee6fd885312 (diff)
downloadmv-386469715bd21da1b7a662761d8266f409813ff6.tar.gz
mv-386469715bd21da1b7a662761d8266f409813ff6.tar.bz2
mv-386469715bd21da1b7a662761d8266f409813ff6.tar.xz
mv-386469715bd21da1b7a662761d8266f409813ff6.zip
Use CREATEWIDGET macro in logindialog.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/logindialog.cpp12
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);
}
}