Merge pull request #1272 from burnsypet/issue-1264

Issue #1264 Don't attempt PopupMenu if getMenu returned False
This commit is contained in:
Ryan Holmes
2017-09-18 20:12:34 -04:00
committed by GitHub

View File

@@ -659,7 +659,11 @@ class ImplantEditorView(BaseImplantEditorView):
# fuck good coding practices, passing a pointer to the character editor here for [reasons] =D
# (see implantSets context class for info)
menu = ContextMenu.getMenu((self.Parent.Parent,), *context)
self.PopupMenu(menu)
if menu:
self.PopupMenu(menu)
else:
pyfalog.debug("ContextMenu.getMenu returned false do not attempt PopupMenu")
def determineEnabled(self):
char = self.Parent.Parent.entityEditor.getActiveEntity()