Only call sip.isdeleted on QObjects
This commit is contained in:
parent
bda72261ad
commit
f12d87fabc
@ -144,7 +144,7 @@ class ObjectRegistry(collections.UserDict):
|
||||
"""Dump all objects as a list of strings."""
|
||||
lines = []
|
||||
for name, obj in self.data.items():
|
||||
if not sip.isdeleted(obj):
|
||||
if not (isinstance(obj, QObject) and sip.isdeleted(obj)):
|
||||
lines.append("{}: {}".format(name, repr(obj)))
|
||||
return lines
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user