Eliminate erronious multi huds on same table in some cases.

This commit is contained in:
Ray
2009-02-27 12:42:49 -05:00
parent e45c42b172
commit 167ea98b8b
2 changed files with 17 additions and 8 deletions
+2 -1
View File
@@ -87,7 +87,6 @@ class HUD_main(object):
self.vb.add(newlabel)
newlabel.show()
self.hud_dict[table_name] = Hud.Hud(self, table, max, poker_game, self.config, self.db_connection)
self.hud_dict[table_name].tablehudlabel = newlabel
self.hud_dict[table_name].create(new_hand_id, self.config, stat_dict, cards)
for m in self.hud_dict[table_name].aux_windows:
@@ -98,6 +97,8 @@ class HUD_main(object):
return False
finally:
gtk.gdk.threads_leave()
self.hud_dict[table_name] = Hud.Hud(self, table, max, poker_game, self.config, self.db_connection)
gobject.idle_add(idle_func)
def update_HUD(self, new_hand_id, table_name, config):