From 212b9a49dad6e3020d3d9cc554cca614f20a32ef Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 17 Aug 2006 14:49:04 -0400 Subject: [PATCH] Don't do anything if there's no console --- shell/ConsoleWindow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/ConsoleWindow.py b/shell/ConsoleWindow.py index 3c98bfe9..4cdbbb1b 100644 --- a/shell/ConsoleWindow.py +++ b/shell/ConsoleWindow.py @@ -106,7 +106,8 @@ class ConsoleWindow(gtk.Window): def __debug_toggled_cb(self, button): if not self._ignore_toggle: console = self._nb.get_nth_page(self._nb.get_current_page()) - console.set_show_debug(button.get_active()) + if console: + console.set_show_debug(button.get_active()) def __page_changed_cb(self, notebook, page, page_num): console = self._nb.get_nth_page(page_num)