get_children() is unhelpful in this context for some reason, use get_child() instead
This commit is contained in:
parent
cc77c3bc4e
commit
94f0fd194c
|
@ -283,7 +283,7 @@ class Window(Container, gtk.Window):
|
|||
|
||||
def hoover(self):
|
||||
"""Ensure we still have a reason to exist"""
|
||||
if len(self.get_children()) == 0:
|
||||
if not self.get_child():
|
||||
self.emit('destroy')
|
||||
|
||||
def closeterm(self, widget):
|
||||
|
|
Loading…
Reference in New Issue