changeset 63:652149e7ef09

Improve code path
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 25 May 2011 11:01:33 +0200
parents 2b600cccf95e
children 94c2c3eeac9a
files getan/view.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/getan/view.py	Wed May 25 11:00:46 2011 +0200
+++ b/getan/view.py	Wed May 25 11:01:33 2011 +0200
@@ -60,11 +60,10 @@
         if edit:
             logger.debug("ListWidget: set footer text (edit) = '%s'" % text)
             self.footer = urwid.AttrWrap(urwid.Edit(text),attr)
-            self._update_view()
         else:
             logger.debug("ListWidget: set footer text = '%s'" % text)
             self.footer = urwid.AttrWrap(urwid.Text(text),attr)
-            self._update_view()
+        self._update_view()
 
     def row_count(self):
         if not self.rows: return 0
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)