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])
# -------------------------------------------------------------------------
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue