From 649348f19cdb3d65f825a2a3270b185fc9d83c75 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 17 Oct 2013 23:53:38 +0300 Subject: move virtual member calls from confirmdialog constuctor into postInit. --- src/gui/windows/socialwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/windows/socialwindow.cpp') diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp index 4adcc5051..e54d0bf55 100644 --- a/src/gui/windows/socialwindow.cpp +++ b/src/gui/windows/socialwindow.cpp @@ -262,7 +262,7 @@ public: // TRANSLATORS: guild leave message strprintf(_("Are you sure you want to leave guild %s?"), mGuild->getName().c_str()), SOUND_REQUEST, socialWindow); - + mConfirmDialog->postInit(); mConfirmDialog->addActionListener(this); } @@ -461,7 +461,7 @@ public: // TRANSLATORS: party leave message strprintf(_("Are you sure you want to leave party %s?"), mParty->getName().c_str()), SOUND_REQUEST, socialWindow); - + mConfirmDialog->postInit(); mConfirmDialog->addActionListener(this); } @@ -1624,6 +1624,7 @@ void SocialWindow::showGuildInvite(const std::string &guildName, // TRANSLATORS: guild invite message mGuildAcceptDialog = new ConfirmDialog(_("Accept Guild Invite"), msg, SOUND_REQUEST, false, false, this); + mGuildAcceptDialog->postInit(); mGuildAcceptDialog->addActionListener(this); mGuildInvited = guildId; } @@ -1681,6 +1682,7 @@ void SocialWindow::showPartyInvite(const std::string &partyName, // TRANSLATORS: party invite message mPartyAcceptDialog = new ConfirmDialog(_("Accept Party Invite"), msg, SOUND_REQUEST, false, false, this); + mPartyAcceptDialog->postInit(); mPartyAcceptDialog->addActionListener(this); mPartyInviter = inviter; } -- cgit v1.2.3-70-g09d2