hide regular exception when closing hud

This commit is contained in:
sqlcoder 2009-09-23 23:04:38 +01:00
parent 23f56ea2ae
commit daeefd7d8a

View File

@ -104,7 +104,11 @@ class HUD_main(object):
# called by an event in the HUD, to kill this specific HUD
if table in self.hud_dict:
self.hud_dict[table].kill()
self.hud_dict[table].main_window.destroy()
try:
# throws exception in windows sometimes (when closing using main_window menu?)
self.hud_dict[table].main_window.destroy()
except:
pass
self.vb.remove(self.hud_dict[table].tablehudlabel)
del(self.hud_dict[table])
self.main_window.resize(1,1)