From 949ff15ab6e7b841b996f8cb1a3bebb957cd4a85 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Dec 2014 22:35:37 +0300 Subject: Remove "leave party" popup menu handler. --- src/gui/popups/popupmenu.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 8ebd34473..0110ec012 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -770,7 +770,7 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab) { // TRANSLATORS: popup menu item // TRANSLATORS: enable away messages in chat tab - mBrowserBox->addRow("leave party", _("Leave")); + mBrowserBox->addRow("/leaveparty", _("Leave")); mBrowserBox->addRow("##3---"); } // TRANSLATORS: popup menu item @@ -987,10 +987,6 @@ void PopupMenu::handleLink(const std::string &link, inputManager.executeChatCommand(InputAction::CLOSE_CHAT_TAB, std::string(), mTab); } - else if (link == "leave party" && mTab) - { - partyHandler->leave(); - } else if (link == "chat clear" && mTab) { if (chatWindow) -- cgit v1.2.3-60-g2f50