changeset 72:90b61a24742b

Don't switch to EntryView if it doesn't contain any row/entry
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 25 May 2011 13:33:23 +0200
parents c1664ea5a83b
children 745c644d9564
files getan/states.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Wed May 25 13:32:34 2011 +0200
+++ b/getan/states.py	Wed May 25 13:33:23 2011 +0200
@@ -37,6 +37,8 @@
             return None
 
         if 'tab' in key:
+            if not self.controller.entries_view.rows:
+                return self
             self.controller.entries_view.focused = 0
             self.controller.entries_view.update_focus(0)
             return DefaultEntryListState(self, self.controller,
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)