From 07d4ee9812ce6c43965d3bdc0d68982d22d6b633 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 17:40:47 +0300 Subject: move virtual member calls from npcpostdialog constuctor into postInit. --- src/gui/windows/npcpostdialog.cpp | 4 ++++ src/gui/windows/npcpostdialog.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src/gui/windows') diff --git a/src/gui/windows/npcpostdialog.cpp b/src/gui/windows/npcpostdialog.cpp index d1542d0bb..2eb20fbf8 100644 --- a/src/gui/windows/npcpostdialog.cpp +++ b/src/gui/windows/npcpostdialog.cpp @@ -49,6 +49,10 @@ NpcPostDialog::NpcPostDialog(const int npcId): { setContentSize(400, 180); +} + +void NpcPostDialog::postInit() +{ // create text field for receiver // TRANSLATORS: label in npc post dialog Label *const senderText = new Label(this, _("To:")); diff --git a/src/gui/windows/npcpostdialog.h b/src/gui/windows/npcpostdialog.h index 9ac3537e2..d3ccb5788 100644 --- a/src/gui/windows/npcpostdialog.h +++ b/src/gui/windows/npcpostdialog.h @@ -43,6 +43,8 @@ class NpcPostDialog final : public Window, ~NpcPostDialog(); + void postInit(); + /** * Called when receiving actions from the widgets. */ -- cgit v1.2.3-70-g09d2