From d5bd11b08e4c49a22b40834c0607e3c9927aecd1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Oct 2013 12:44:17 +0300 Subject: move virtual member calls from textdialog constructor into postInit. --- src/gui/popups/popupmenu.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/popups') 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); -- cgit v1.2.3-70-g09d2