summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-05 00:17:53 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-05 00:17:53 +0300
commit7565f7ee83bd80cd571eb247d3440c1c85144b8a (patch)
tree9f22a76540b1ea786fc28a2eee83bfe978236b7d /src
parent42992bc9561e9a684c5897ff66dc3c076900e92c (diff)
downloadmanaverse-7565f7ee83bd80cd571eb247d3440c1c85144b8a.tar.gz
manaverse-7565f7ee83bd80cd571eb247d3440c1c85144b8a.tar.bz2
manaverse-7565f7ee83bd80cd571eb247d3440c1c85144b8a.tar.xz
manaverse-7565f7ee83bd80cd571eb247d3440c1c85144b8a.zip
Dont show "protect item" for pseudo items.
Diffstat (limited to 'src')
-rw-r--r--src/gui/popupmenu.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 0cd6e0511..d43771881 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -2560,8 +2560,11 @@ void PopupMenu::addProtection()
}
else
{
- // TRANSLATORS: popup menu item
- mBrowserBox->addRow("protect item", _("Protect item"));
+ if (mItemId < SPELL_MIN_ID)
+ {
+ // TRANSLATORS: popup menu item
+ mBrowserBox->addRow("protect item", _("Protect item"));
+ }
}
}