diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/socialwindow.cpp | 9 | ||||
-rw-r--r-- | src/gui/windows/socialwindow.h | 4 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp index 9005e8b35..6fae8deaa 100644 --- a/src/gui/windows/socialwindow.cpp +++ b/src/gui/windows/socialwindow.cpp @@ -91,6 +91,7 @@ SocialWindow::SocialWindow() : mTabs(new TabbedArea(this)), mMap(nullptr), mLastUpdateTime(0), + mPartyId(0), mNeedUpdate(false), mProcessedPortals(false) { @@ -275,7 +276,7 @@ void SocialWindow::action(const ActionEvent &event) strprintf(_("Accepted party invite from %s."), mPartyInviter.c_str())); } - partyHandler->inviteResponse(mPartyInviter, true); + partyHandler->inviteResponse(mPartyInviter, mPartyId, true); } else if (eventId == "no") { @@ -286,7 +287,7 @@ void SocialWindow::action(const ActionEvent &event) strprintf(_("Rejected party invite from %s."), mPartyInviter.c_str())); } - partyHandler->inviteResponse(mPartyInviter, false); + partyHandler->inviteResponse(mPartyInviter, mPartyId, false); } mPartyInviter.clear(); @@ -431,7 +432,8 @@ void SocialWindow::showGuildInvite(const std::string &restrict guildName, } void SocialWindow::showPartyInvite(const std::string &restrict partyName, - const std::string &restrict inviter) + const std::string &restrict inviter, + const int partyId) { // check there isnt already an invite showing if (!mPartyInviter.empty()) @@ -486,6 +488,7 @@ void SocialWindow::showPartyInvite(const std::string &restrict partyName, mPartyAcceptDialog->postInit(); mPartyAcceptDialog->addActionListener(this); mPartyInviter = inviter; + mPartyId = partyId; } void SocialWindow::showPartyCreate() diff --git a/src/gui/windows/socialwindow.h b/src/gui/windows/socialwindow.h index 80cc38b0e..a2ecc5e8f 100644 --- a/src/gui/windows/socialwindow.h +++ b/src/gui/windows/socialwindow.h @@ -76,7 +76,8 @@ class SocialWindow final : public Window, void showGuildCreate(); void showPartyInvite(const std::string &restrict partyName, - const std::string &restrict inviter = ""); + const std::string &restrict inviter, + const int partyId); void showPartyCreate(); @@ -169,6 +170,7 @@ class SocialWindow final : public Window, Map *mMap; int mLastUpdateTime; + int mPartyId; bool mNeedUpdate; bool mProcessedPortals; }; |