Author: reinhard
Date: 2005-09-21 08:20:53 -0500 (Wed, 21 Sep 2005)
New Revision: 7944

Modified:
   trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py
Log:
If the cursor navigates out of an empty record, throw it away.


Modified: trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py 2005-09-21 
13:06:48 UTC (rev 7943)
+++ trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py 2005-09-21 
13:20:53 UTC (rev 7944)
@@ -798,6 +798,9 @@
     # non-changing records after requery or merge) to a new current record,
     # bring all detail records in sync.
     if self.current and self.current != oldCurrent:
+      # If the cursor moved out of an empty record, throw it away.
+      if oldCurrent and oldCurrent.isEmpty ():
+        self.__removeRecord (self.__cachedRecords.index (oldCurrent))
       self.current._activate ()
 
     if self.__eventController is not None:



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

Reply via email to