Disconnect contents_size_changed during cleanup

This commit is contained in:
Florian Bruhin 2016-07-28 14:59:23 +02:00
parent 21c1dec59a
commit 9cbf9eaa76

View File

@ -169,6 +169,8 @@ class HintManager(QObject):
def _cleanup(self):
"""Clean up after hinting."""
self._context.tab.contents_size_changed.disconnect(
self.on_contents_size_changed)
for elem in self._context.all_elems:
try:
elem.label.remove_from_document()