diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-19 12:44:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:22 +0300 |
commit | d5bd11b08e4c49a22b40834c0607e3c9927aecd1 (patch) | |
tree | 5480ef3be37dd680a5ba6a0b20224711e3e56233 /src/gui/popups | |
parent | a259a5380ca980da4fcfb866777192231aa9f854 (diff) | |
download | manaplus-d5bd11b08e4c49a22b40834c0607e3c9927aecd1.tar.gz manaplus-d5bd11b08e4c49a22b40834c0607e3c9927aecd1.tar.bz2 manaplus-d5bd11b08e4c49a22b40834c0607e3c9927aecd1.tar.xz manaplus-d5bd11b08e4c49a22b40834c0607e3c9927aecd1.zip |
move virtual member calls from textdialog constructor into postInit.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index daee76630..67310deef 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -1329,6 +1329,7 @@ void PopupMenu::handleLink(const std::string &link, mDialog = new TextDialog(_("Rename map sign "), // TRANSLATORS: number of chars in string should be near original _("Name: ")); + mDialog->postInit(); mRenameListener.setDialog(mDialog); mDialog->setText(mMapItem->getComment()); mDialog->setActionEventId("ok"); @@ -1354,6 +1355,7 @@ void PopupMenu::handleLink(const std::string &link, _("Player comment "), // TRANSLATORS: number of chars in string should be near original _("Comment: ")); + dialog->postInit(); mPlayerListener.setDialog(dialog); mPlayerListener.setNick(mNick); mPlayerListener.setType(mType); |