diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-18 17:40:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:21 +0300 |
commit | 07d4ee9812ce6c43965d3bdc0d68982d22d6b633 (patch) | |
tree | cbe98a57856f61bddccdb2cf36aa9f7b6da177fa /src/gui/windows | |
parent | 4466a6a4b4c39dc91c2b37b0368a83c8e83e197f (diff) | |
download | manaverse-07d4ee9812ce6c43965d3bdc0d68982d22d6b633.tar.gz manaverse-07d4ee9812ce6c43965d3bdc0d68982d22d6b633.tar.bz2 manaverse-07d4ee9812ce6c43965d3bdc0d68982d22d6b633.tar.xz manaverse-07d4ee9812ce6c43965d3bdc0d68982d22d6b633.zip |
move virtual member calls from npcpostdialog constuctor into postInit.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/npcpostdialog.cpp | 4 | ||||
-rw-r--r-- | src/gui/windows/npcpostdialog.h | 2 |
2 files changed, 6 insertions, 0 deletions
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. */ |