Fix bug in autoclosing HUDs on windows.

This commit is contained in:
Ray 2009-02-28 15:19:01 -05:00
parent b3fb9e954d
commit 5bf7d9038a

View File

@ -142,7 +142,7 @@ class Hud:
def update_table_position(self): def update_table_position(self):
if os.name == 'nt': if os.name == 'nt':
if not win32gui.IsWindow(self.table.number): if not win32gui.IsWindow(self.table.number):
self.kill_hud() self.parent.kill_hud(self)
return False return False
# anyone know how to do this in unix, or better yet, trap the X11 error that is triggered when executing the get_origin() for a closed window? # anyone know how to do this in unix, or better yet, trap the X11 error that is triggered when executing the get_origin() for a closed window?