summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popupmenu.cpp')
-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"));
+ }
}
}