diff options
-rw-r--r-- | src/gui/windows/socialwindow.cpp | 35 | ||||
-rw-r--r-- | src/gui/windows/socialwindow.h | 2 |
2 files changed, 0 insertions, 37 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp index fbd7578a3..f9e13ca98 100644 --- a/src/gui/windows/socialwindow.cpp +++ b/src/gui/windows/socialwindow.cpp @@ -323,10 +323,6 @@ void SocialWindow::action(const ActionEvent &event) mGuildInvited = 0; mGuildAcceptDialog = nullptr; } - else if (eventId == "create") - { - showPartyCreate(); - } else if (eventId == "invite" && mTabs->getSelectedTabIndex() > -1) { if (mTabs->getSelectedTab()) @@ -494,37 +490,6 @@ void SocialWindow::showPartyInvite(const std::string &restrict partyName, mPartyId = partyId; } -void SocialWindow::showPartyCreate() -{ - if (!localPlayer) - return; - - if (localPlayer->getParty()) - { - CREATEWIDGET(OkDialog, - // TRANSLATORS: party creation message - _("Create Party"), - // TRANSLATORS: party creation error - _("Cannot create party. You are already in a party"), - // TRANSLATORS: ok dialog button - _("OK"), - DialogType::ERROR, - Modal_true, - ShowCenter_true, - this, - 260); - return; - } - - CREATEWIDGETV(mPartyCreateDialog, TextDialog, - // TRANSLATORS: party creation message - _("Party Name"), - // TRANSLATORS: party creation message - _("Choose your party's name."), this); - mPartyCreateDialog->setActionEventId("create party"); - mPartyCreateDialog->addActionListener(this); -} - void SocialWindow::updateActiveList() { mNeedUpdate = true; diff --git a/src/gui/windows/socialwindow.h b/src/gui/windows/socialwindow.h index dc68fb7d4..19932219e 100644 --- a/src/gui/windows/socialwindow.h +++ b/src/gui/windows/socialwindow.h @@ -73,8 +73,6 @@ class SocialWindow final : public Window, const std::string &restrict inviter, const int partyId); - void showPartyCreate(); - void updateActiveList(); void updateAvatar(const std::string &name); |