Don't do anything if there's no console

This commit is contained in:
Dan Williams 2006-08-17 14:49:04 -04:00
parent f1d6f96dc4
commit 212b9a49da

View File

@ -106,6 +106,7 @@ class ConsoleWindow(gtk.Window):
def __debug_toggled_cb(self, button): def __debug_toggled_cb(self, button):
if not self._ignore_toggle: if not self._ignore_toggle:
console = self._nb.get_nth_page(self._nb.get_current_page()) console = self._nb.get_nth_page(self._nb.get_current_page())
if console:
console.set_show_debug(button.get_active()) console.set_show_debug(button.get_active())
def __page_changed_cb(self, notebook, page, page_num): def __page_changed_cb(self, notebook, page, page_num):