Deadspace metagroup is called complex in pyfa, so rewrite when necessairy, fixing ticket 176

This commit is contained in:
Weeknie
2010-10-23 22:25:06 +02:00
parent f94a8e6fdd
commit 1510b12d0d

View File

@@ -139,6 +139,8 @@ class MarketBrowser(wx.Panel):
cMarket.disableMetaGroup(btn)
metaGroup = item.metaGroup.name.lower()
#In database the metagroup is deadspace, but in pyfa it's called complex, so rewrite
metaGroup = metaGroup if metaGroup != "deadspace" else "complex"
getattr(self, metaGroup).SetValue(True)
cMarket.activateMetaGroup(metaGroup)
self.searching = False