Fix for new ammo picker (which borked resistance profile selector)

This commit is contained in:
DarkPhoenix
2014-11-05 22:00:55 +03:00
parent 28f2644a15
commit d298ed8e01

View File

@@ -42,7 +42,7 @@ class ModuleGlobalAmmoPicker(ModuleAmmoPicker):
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
def display(self, srcContext, selection):
if len(selection) != 1:
if selection is None or len(selection) != 1:
return False
return super(ModuleGlobalAmmoPicker, self).display(srcContext, selection)