Fixes traceback on show module stats

Looking at the stat on a berserker SW-900 drone was causing tracebacks if all-5 skills were set. This fixes it.
This commit is contained in:
Corollax
2011-09-28 19:51:39 +03:00
parent 83623d519c
commit 3b9738a1b0

View File

@@ -294,10 +294,10 @@ class ItemParams (wx.Panel):
val = getattr(att, "value", None)
value = val if val is not None else att
if self.toggleView != 1:
attrName = name
if info and info.displayName and self.toggleView == 1:
attrName = info.displayName
else:
attrName = info.displayName if info.displayName <> "" else name
attrName = name
if info:
if info.icon is not None: