summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 17:40:47 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:21 +0300
commit07d4ee9812ce6c43965d3bdc0d68982d22d6b633 (patch)
treecbe98a57856f61bddccdb2cf36aa9f7b6da177fa
parent4466a6a4b4c39dc91c2b37b0368a83c8e83e197f (diff)
downloadmv-07d4ee9812ce6c43965d3bdc0d68982d22d6b633.tar.gz
mv-07d4ee9812ce6c43965d3bdc0d68982d22d6b633.tar.bz2
mv-07d4ee9812ce6c43965d3bdc0d68982d22d6b633.tar.xz
mv-07d4ee9812ce6c43965d3bdc0d68982d22d6b633.zip
move virtual member calls from npcpostdialog constuctor into postInit.
-rw-r--r--src/gui/windows/npcpostdialog.cpp4
-rw-r--r--src/gui/windows/npcpostdialog.h2
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.
*/