summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-04 12:50:28 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-04 12:50:28 +0300
commit2ba2b398bdee802ed8c09819562de0afb34a1229 (patch)
treea5426fa3960b6a4dc92d351aa93f886672c176f8 /src/gui/popups
parent71d4ccedddfb7bdafd7b05bbb669d71164a4dc37 (diff)
downloadmv-2ba2b398bdee802ed8c09819562de0afb34a1229.tar.gz
mv-2ba2b398bdee802ed8c09819562de0afb34a1229.tar.bz2
mv-2ba2b398bdee802ed8c09819562de0afb34a1229.tar.xz
mv-2ba2b398bdee802ed8c09819562de0afb34a1229.zip
Add option for features.xml for allow/not allow follow.
New option: allowFollow default value is 1.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 4f6bb3372..a9ca65b36 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -2574,8 +2574,11 @@ void PopupMenu::addPlayerRelation(const std::string &name)
void PopupMenu::addFollow()
{
- // TRANSLATORS: popup menu item
- mBrowserBox->addRow("follow", _("Follow"));
+ if (features.getBoolValue("allowFollow"))
+ {
+ // TRANSLATORS: popup menu item
+ mBrowserBox->addRow("follow", _("Follow"));
+ }
// TRANSLATORS: popup menu item
// TRANSLATORS: imitate player
mBrowserBox->addRow("imitation", _("Imitation"));