summaryrefslogtreecommitdiff
path: root/src/gui/windows/socialwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-17 23:53:38 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:18 +0300
commit649348f19cdb3d65f825a2a3270b185fc9d83c75 (patch)
tree3a31f64178d266383899c67782843736578e580e /src/gui/windows/socialwindow.cpp
parent0c6d457fe227ba9fd0a7c4c51cc2eb5995ca2c19 (diff)
downloadmanaplus-649348f19cdb3d65f825a2a3270b185fc9d83c75.tar.gz
manaplus-649348f19cdb3d65f825a2a3270b185fc9d83c75.tar.bz2
manaplus-649348f19cdb3d65f825a2a3270b185fc9d83c75.tar.xz
manaplus-649348f19cdb3d65f825a2a3270b185fc9d83c75.zip
move virtual member calls from confirmdialog constuctor into postInit.
Diffstat (limited to 'src/gui/windows/socialwindow.cpp')
-rw-r--r--src/gui/windows/socialwindow.cpp6
1 files changed, 4 insertions, 2 deletions
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;
}