summaryrefslogtreecommitdiff
path: root/src/gui/windows/registerdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-16 19:33:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-16 19:41:37 +0300
commit741d50e884d8a8b783b3980db775ebc07045a65a (patch)
tree161773b4eab09487f62f35ad82113ac996f15320 /src/gui/windows/registerdialog.cpp
parent5a007084e304048549233118707f5ab44f067e1a (diff)
downloadmanaplus-741d50e884d8a8b783b3980db775ebc07045a65a.tar.gz
manaplus-741d50e884d8a8b783b3980db775ebc07045a65a.tar.bz2
manaplus-741d50e884d8a8b783b3980db775ebc07045a65a.tar.xz
manaplus-741d50e884d8a8b783b3980db775ebc07045a65a.zip
Move wrongdatanoticelistener into separate file.
Diffstat (limited to 'src/gui/windows/registerdialog.cpp')
-rw-r--r--src/gui/windows/registerdialog.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp
index 0f0d85c9c..2ecf5fc87 100644
--- a/src/gui/windows/registerdialog.cpp
+++ b/src/gui/windows/registerdialog.cpp
@@ -28,6 +28,8 @@
#include "input/keydata.h"
+#include "listeners/wrongdatanoticelistener.h"
+
#include "gui/windows/okdialog.h"
#include "gui/widgets/button.h"
@@ -46,23 +48,6 @@
#include "debug.h"
-WrongDataNoticeListener::WrongDataNoticeListener():
- ActionListener(),
- mTarget(nullptr)
-{
-}
-
-void WrongDataNoticeListener::setTarget(TextField *const textField)
-{
- mTarget = textField;
-}
-
-void WrongDataNoticeListener::action(const ActionEvent &event)
-{
- if (event.getId() == "ok" && mTarget)
- mTarget->requestFocus();
-}
-
RegisterDialog::RegisterDialog(LoginData *const data) :
// TRANSLATORS: register dialog name
Window(_("Register"), false, nullptr, "register.xml"),