Fix autoclose on tourney table change.

This commit is contained in:
Eratosthenes 2010-12-10 13:41:04 -05:00
parent a4dff38c9f
commit f0a5864bf4

View File

@ -312,8 +312,9 @@ def idle_kill(hud_main, table):
gtk.gdk.threads_enter() gtk.gdk.threads_enter()
try: try:
if table in hud_main.hud_dict: if table in hud_main.hud_dict:
hud_main.hud_dict[table].kill()
hud_main.vb.remove(hud_main.hud_dict[table].tablehudlabel) hud_main.vb.remove(hud_main.hud_dict[table].tablehudlabel)
hud_main.hud_dict[table].main_window.destroy()
hud_main.hud_dict[table].kill()
del(hud_main.hud_dict[table]) del(hud_main.hud_dict[table])
hud_main.main_window.resize(1, 1) hud_main.main_window.resize(1, 1)
except: except: