From b54549e4635fcbea922d42f2d5454b0f84ebe383 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Oct 2013 13:28:39 +0300 Subject: move virtual member calls from unregisterdialog constructor into postInit. --- src/gui/windows/unregisterdialog.cpp | 4 ++++ src/gui/windows/unregisterdialog.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src/gui/windows') 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 @@ -53,6 +53,10 @@ UnRegisterDialog::UnRegisterDialog(LoginData *const data) : // TRANSLATORS: unregister dialog. button. 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"), 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. */ -- cgit v1.2.3-60-g2f50