commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r8867 - trunk/gnue-forms/src


From: reinhard
Subject: [gnue] r8867 - trunk/gnue-forms/src
Date: Thu, 19 Oct 2006 06:59:02 -0500 (CDT)

Author: reinhard
Date: 2006-10-19 06:59:01 -0500 (Thu, 19 Oct 2006)
New Revision: 8867

Modified:
   trunk/gnue-forms/src/GFForm.py
Log:
Fixed traceback when selecting previous block while not being in a block at
all.


Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py      2006-10-19 11:54:19 UTC (rev 8866)
+++ trunk/gnue-forms/src/GFForm.py      2006-10-19 11:59:01 UTC (rev 8867)
@@ -926,7 +926,11 @@
         """
 
         blocks = self._logic._blockList
-        self.findAndChangeFocus(blocks[blocks.index(self._currentBlock) - 1])
+        if self._currentBlock is not None:
+            self.findAndChangeFocus(blocks[blocks.index(
+                    self._currentBlock) - 1])
+        else:
+            self.findAndChangeFocus(blocks[-1])
 
 
     # -------------------------------------------------------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]