summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-19 19:36:31 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-19 19:36:31 +0300
commit23c48689e73acc52dfd2b6e0e62105ddbd3fd30e (patch)
treef3b2f48ff8b4bee2f6fb4684677fbadd9158c023 /src/gui/popups/popupmenu.cpp
parent201ecf111a1fcce2b76dc0186e2dc7b0d0ac0b41 (diff)
downloadmanaplus-23c48689e73acc52dfd2b6e0e62105ddbd3fd30e.tar.gz
manaplus-23c48689e73acc52dfd2b6e0e62105ddbd3fd30e.tar.bz2
manaplus-23c48689e73acc52dfd2b6e0e62105ddbd3fd30e.tar.xz
manaplus-23c48689e73acc52dfd2b6e0e62105ddbd3fd30e.zip
Allow leave guild from social window menu.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index e2159cbd8..5eacbab01 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -3408,7 +3408,13 @@ void PopupMenu::addSocialMenu()
mBrowserBox->addRow("/createparty", _("Create party"));
}
const Guild *const guild = localPlayer->getGuild();
- if (!guild)
+ if (guild)
+ {
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: leave guild
+ mBrowserBox->addRow("/leaveguild", _("Leave guild"));
+ }
+ else
{
// TRANSLATORS: popup menu item
// TRANSLATORS: create guild