only do the ignore trick if we are ignoring, not unignoring.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-12-19 21:06:43 +00:00
parent 6f9276360c
commit 30c809c9f6

View File

@@ -317,7 +317,7 @@ class FunctionDef(BaseDef):
# If the item being ignored has overloads then try to reorder the
# items so the primary item is not an ignored one.
super(FunctionDef, self).ignore(val)
if self.overloads:
if val and self.overloads:
all = [self] + self.overloads
all.sort(key=lambda item: item.ignored)
first = all[0]