# HG changeset patch # User Goffi # Date 1281362816 -28800 # Node ID a2655a0a4eac9df91da7b8e39c554fdbebdeed32 # Parent 6fd053c9942114701a08c5446b60e8cdcccd1d3e Primitivus: 2 bugs fixes - fixed bad focus when using removeWindow - UnselectAll was incomplete in contactList diff -r 6fd053c99421 -r a2655a0a4eac frontends/primitivus/contact_list.py --- a/frontends/primitivus/contact_list.py Mon Aug 09 21:58:28 2010 +0800 +++ b/frontends/primitivus/contact_list.py Mon Aug 09 22:06:56 2010 +0800 @@ -119,6 +119,7 @@ def unselectAll(self): """Unselect all contacts""" + self.selected = None for widget in self.frame.body.body: if widget.__class__ == custom_widgets.SelectableText: widget.setState(False, invisible=True) diff -r 6fd053c99421 -r a2655a0a4eac frontends/primitivus/primitivus --- a/frontends/primitivus/primitivus Mon Aug 09 21:58:28 2010 +0800 +++ b/frontends/primitivus/primitivus Mon Aug 09 22:06:56 2010 +0800 @@ -257,6 +257,7 @@ assert(len(self.center_part.widget_list)<=2) wid_idx = len(self.center_part.widget_list)-1 self.center_part.widget_list[wid_idx] = urwid.Filler(urwid.Text('')) + self.center_part.set_focus(0) self.redraw() def contactSelected(self, contact_list):