diff options
Diffstat (limited to 'src/gui/windows/registerdialog.cpp')
-rw-r--r-- | src/gui/windows/registerdialog.cpp | 19 |
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"), |