diff gui/containergui_base.py @ 135:9e86c37f5506

Added context menu to the inventory.
author KarstenBock@gmx.net
date Sat, 08 Oct 2011 14:25:48 +0200
parents aea5a9229b4c
children c28e29056218
line wrap: on
line diff
--- a/gui/containergui_base.py	Sat Oct 08 14:19:35 2011 +0200
+++ b/gui/containergui_base.py	Sat Oct 08 14:25:48 2011 +0200
@@ -124,8 +124,9 @@
            @return: None"""
         if event.getButton() == event.RIGHT:
             item = widget.item
-            if item:                
-                item = item.entity
+            if item:
+                if not isinstance(item, General):
+                    item = item.entity
                 actions = {}
                 if item.usable:
                     actions = deepcopy(item.usable.actions)