Author: johannes
Date: 2006-11-13 07:17:59 -0600 (Mon, 13 Nov 2006)
New Revision: 9030

Modified:
   trunk/gnue-forms/src/GFForm.py
Log:
Only move the record when autoNextRecord is set


Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py      2006-11-13 12:28:56 UTC (rev 9029)
+++ trunk/gnue-forms/src/GFForm.py      2006-11-13 13:17:59 UTC (rev 9030)
@@ -846,7 +846,8 @@
 
           # If we should navigate to the next record, do it...
           if currentBlock is not None \
-                  and reverse and not currentBlock.is_first_record():
+                  and reverse and currentBlock.autoNextRecord \
+                  and not currentBlock.is_first_record():
             self.change_focus(nextEntry, -1)
           elif currentBlock is not None and not reverse and \
              currentBlock.autoNextRecord and \
@@ -1127,6 +1128,7 @@
                 # Special case: next_record() can also trigger a new_record()
                 new_block.next_record()
             elif row_offset != 0:
+                print "ROW-OFFSET:", row_offset
                 new_block.jump_records(row_offset)
 
             self._currentEntry = widget



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to