diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-19 19:36:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-19 19:36:31 +0300 |
commit | 23c48689e73acc52dfd2b6e0e62105ddbd3fd30e (patch) | |
tree | f3b2f48ff8b4bee2f6fb4684677fbadd9158c023 /src/gui/popups | |
parent | 201ecf111a1fcce2b76dc0186e2dc7b0d0ac0b41 (diff) | |
download | plus-23c48689e73acc52dfd2b6e0e62105ddbd3fd30e.tar.gz plus-23c48689e73acc52dfd2b6e0e62105ddbd3fd30e.tar.bz2 plus-23c48689e73acc52dfd2b6e0e62105ddbd3fd30e.tar.xz plus-23c48689e73acc52dfd2b6e0e62105ddbd3fd30e.zip |
Allow leave guild from social window menu.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 8 |
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 |