From 7565f7ee83bd80cd571eb247d3440c1c85144b8a Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Fri, 5 Jul 2013 00:17:53 +0300
Subject: Dont show "protect item" for pseudo items.

---
 src/gui/popupmenu.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'src')

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"));
+        }
     }
 }
 
-- 
cgit v1.2.3-70-g09d2