From c325daf7f6bcd739fc19083709b9db2eb43ac36e Mon Sep 17 00:00:00 2001 From: Eric Blade Date: Mon, 27 Sep 2010 07:34:25 -0400 Subject: [PATCH] check_table_no deals with "None" passed to it --- pyfpdb/TableWindow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyfpdb/TableWindow.py b/pyfpdb/TableWindow.py index 0e59a87b..f904fa15 100644 --- a/pyfpdb/TableWindow.py +++ b/pyfpdb/TableWindow.py @@ -251,7 +251,8 @@ class Table_Window(object): result = self.get_table_no() if result != False and result != self.table: self.table = result - hud.main_window.emit("table_changed", hud) + if hud is not None: + hud.main_window.emit("table_changed", hud) return True def check_bad_words(self, title):