From a1b2874878524f6d53c6bbc133b1abd4354b3d6b Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 6 Apr 2009 23:42:36 -0400 Subject: [PATCH] Fix regression in naming HUDs that caused inconsistent killing. --- pyfpdb/HUD_main.py | 3 +-- pyfpdb/Hud.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pyfpdb/HUD_main.py b/pyfpdb/HUD_main.py index 332e33c8..39d190a8 100755 --- a/pyfpdb/HUD_main.py +++ b/pyfpdb/HUD_main.py @@ -108,9 +108,9 @@ class HUD_main(object): gtk.gdk.threads_leave() self.hud_dict[table_name] = Hud.Hud(self, table, max, poker_game, self.config, self.db_connection) + self.hud_dict[table_name].table_name = table_name self.hud_dict[table_name].stat_dict = stat_dict self.hud_dict[table_name].cards = cards - [aw.update_data(new_hand_id, self.db_connection) for aw in self.hud_dict[table_name].aux_windows] gobject.idle_add(idle_func) @@ -184,7 +184,6 @@ class HUD_main(object): tablewindow = Tables.discover_tournament_table(self.config, tour_number, tab_number) else: tablewindow = Tables.discover_table_by_name(self.config, table_name) - if tablewindow == None: # If no client window is found on the screen, complain and continue if is_tournament: diff --git a/pyfpdb/Hud.py b/pyfpdb/Hud.py index 3646c6c9..363175a1 100644 --- a/pyfpdb/Hud.py +++ b/pyfpdb/Hud.py @@ -125,7 +125,7 @@ class Hud: self.menu = gtk.Menu() self.item1 = gtk.MenuItem('Kill this HUD') self.menu.append(self.item1) - self.item1.connect("activate", self.parent.kill_hud, self.table.name) + self.item1.connect("activate", self.parent.kill_hud, self.table_name) self.item1.show() self.item2 = gtk.MenuItem('Save Layout')