diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 1 | ||||
-rw-r--r-- | src/gui/windows/unregisterdialog.cpp | 4 | ||||
-rw-r--r-- | src/gui/windows/unregisterdialog.h | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 373c9b13f..59ce01f75 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1659,6 +1659,7 @@ int Client::gameExec() case STATE_UNREGISTER: logger->log1("State: UNREGISTER"); mCurrentDialog = new UnRegisterDialog(&loginData); + mCurrentDialog->postInit(); break; case STATE_UNREGISTER_ATTEMPT: diff --git a/src/gui/windows/unregisterdialog.cpp b/src/gui/windows/unregisterdialog.cpp index 9c445ebdd..4372ee94d 100644 --- a/src/gui/windows/unregisterdialog.cpp +++ b/src/gui/windows/unregisterdialog.cpp @@ -54,6 +54,10 @@ UnRegisterDialog::UnRegisterDialog(LoginData *const data) : mCancelButton(new Button(this, _("Cancel"), "cancel", this)), mWrongDataNoticeListener(new WrongDataNoticeListener) { +} + +void UnRegisterDialog::postInit() +{ // TRANSLATORS: unregister dialog. label. Label *const userLabel = new Label(this, strprintf(_("Name: %s"), mLoginData->username.c_str())); diff --git a/src/gui/windows/unregisterdialog.h b/src/gui/windows/unregisterdialog.h index 63155d2eb..5b5587794 100644 --- a/src/gui/windows/unregisterdialog.h +++ b/src/gui/windows/unregisterdialog.h @@ -51,6 +51,8 @@ class UnRegisterDialog final : public Window, public gcn::ActionListener ~UnRegisterDialog(); + void postInit() override; + /** * Called when receiving actions from the widgets. */ |