From 6157eb782ace3423b9e7c138483e058585eee471 Mon Sep 17 00:00:00 2001 From: Andrew Psaltis Date: Mon, 25 May 2009 12:08:53 -0400 Subject: [PATCH] Really fix crash on startup if there is no connection present. --- curses/wicd-curses.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/curses/wicd-curses.py b/curses/wicd-curses.py index a66f99d..7b93760 100755 --- a/curses/wicd-curses.py +++ b/curses/wicd-curses.py @@ -510,6 +510,9 @@ class appGUI(): self.list_header=urwid.AttrWrap(urwid.Text(gen_list_header()),'listbar') self.wlessH=NSelListBox([urwid.Text("Wireless Network(s)"),self.list_header]) + # Init this earlier to make update_status happy + self.update_tag = None + # FIXME: This should be two variables self.focusloc = [1,0] @@ -564,7 +567,6 @@ class appGUI(): self.update_status() - self.update_tag = None #self.max_wait = ui.max_wait def doScan(self, sync=False): @@ -799,7 +801,6 @@ class appGUI(): # Handle keystrokes if "f8" in keys or 'Q' in keys or 'q' in keys: loop.quit() - print "blah" #return False if "f5" in keys or 'R' in keys: self.lock_screen()