From 3a05d82a231b43db8be9762c9b7417d54e050e53 Mon Sep 17 00:00:00 2001 From: Andrew Psaltis Date: Tue, 12 May 2009 00:04:43 -0400 Subject: [PATCH] If the screen in wicd-curses is not up and an ui update is requested, abort the program. --- curses/wicd-curses.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/curses/wicd-curses.py b/curses/wicd-curses.py index 93ed4b4..315eb2b 100755 --- a/curses/wicd-curses.py +++ b/curses/wicd-curses.py @@ -962,6 +962,10 @@ class appGUI(): # the input. I'll try to get that working at a later time, if people # want that "feature". #canvaso = urwid.CanvasOverlay(self.dialog.render( (80,20),True),canvas,0,1) + # If the screen is turned off for some reason, don't even try to do the + # rest of the stuff. + if not ui._started: + return False ui.draw_screen((self.size),canvas) keys = ui.get_input() self.handle_keys(keys)