summaryrefslogtreecommitdiff
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
parent42992bc9561e9a684c5897ff66dc3c076900e92c (diff)
downloadplus-7565f7ee83bd80cd571eb247d3440c1c85144b8a.tar.gz
plus-7565f7ee83bd80cd571eb247d3440c1c85144b8a.tar.bz2
plus-7565f7ee83bd80cd571eb247d3440c1c85144b8a.tar.xz
plus-7565f7ee83bd80cd571eb247d3440c1c85144b8a.zip
Dont show "protect item" for pseudo items.
-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"));
+ }
}
}