Clean up objreg log text. This confused me in #159.
This commit is contained in:
parent
4c29d1eafd
commit
f3ad1b71e6
@ -76,12 +76,12 @@ class ObjectRegistry(collections.UserDict):
|
|||||||
be destroying its children, which might still use the object
|
be destroying its children, which might still use the object
|
||||||
registry.
|
registry.
|
||||||
"""
|
"""
|
||||||
log.misc.debug("schedule destroyed: {}".format(name))
|
log.misc.debug("schedule removal: {}".format(name))
|
||||||
QTimer.singleShot(0, functools.partial(self._on_destroyed, name))
|
QTimer.singleShot(0, functools.partial(self._on_destroyed, name))
|
||||||
|
|
||||||
def _on_destroyed(self, name):
|
def _on_destroyed(self, name):
|
||||||
"""Remove a destroyed QObject."""
|
"""Remove a destroyed QObject."""
|
||||||
log.misc.debug("destroyed: {}".format(name))
|
log.misc.debug("removed: {}".format(name))
|
||||||
try:
|
try:
|
||||||
del self[name]
|
del self[name]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user