hide regular exception when closing hud
This commit is contained in:
parent
23f56ea2ae
commit
daeefd7d8a
|
@ -104,7 +104,11 @@ class HUD_main(object):
|
||||||
# called by an event in the HUD, to kill this specific HUD
|
# called by an event in the HUD, to kill this specific HUD
|
||||||
if table in self.hud_dict:
|
if table in self.hud_dict:
|
||||||
self.hud_dict[table].kill()
|
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)
|
self.vb.remove(self.hud_dict[table].tablehudlabel)
|
||||||
del(self.hud_dict[table])
|
del(self.hud_dict[table])
|
||||||
self.main_window.resize(1,1)
|
self.main_window.resize(1,1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user