[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8868 - trunk/gnue-forms/src
From: |
reinhard |
Subject: |
[gnue] r8868 - trunk/gnue-forms/src |
Date: |
Thu, 19 Oct 2006 07:02:02 -0500 (CDT) |
Author: reinhard
Date: 2006-10-19 07:02:02 -0500 (Thu, 19 Oct 2006)
New Revision: 8868
Modified:
trunk/gnue-forms/src/GFForm.py
Log:
Same fix for next_block.
Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py 2006-10-19 11:59:01 UTC (rev 8867)
+++ trunk/gnue-forms/src/GFForm.py 2006-10-19 12:02:02 UTC (rev 8868)
@@ -910,12 +910,15 @@
"""
blocks = self._logic._blockList
- current_index = blocks.index(self._currentBlock)
- if current_index == len(blocks) - 1:
- next_index = 0
+ if self._currentBlock is not None:
+ current_index = blocks.index(self._currentBlock)
+ if current_index == len(blocks) - 1:
+ next_index = 0
+ else:
+ next_index = current_index + 1
+ self.findAndChangeFocus(blocks[next_index])
else:
- next_index = current_index + 1
- self.findAndChangeFocus(blocks[next_index])
+ self.findAndChangeFocus(blocks[0])
# -------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8868 - trunk/gnue-forms/src,
reinhard <=