commit-gnue
[Top][All Lists]
Advanced

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

r6649 - trunk/gnue-common/src/datasources/drivers/Base


From: reinhard
Subject: r6649 - trunk/gnue-common/src/datasources/drivers/Base
Date: Mon, 8 Nov 2004 08:21:59 -0600 (CST)

Author: reinhard
Date: 2004-11-08 08:21:58 -0600 (Mon, 08 Nov 2004)
New Revision: 6649

Modified:
   trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py
Log:
Do not notify detail records of a changed master if the master hasn't really
changed. This fixes scrolling in detail grids with autocommit.


Modified: trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py 2004-11-08 
11:56:51 UTC (rev 6648)
+++ trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py 2004-11-08 
14:21:58 UTC (rev 6649)
@@ -129,6 +129,11 @@
 
     if record >= len(self._cachedRecords):
       return None
+    elif record == self._currentRecord \
+         and self.current == self._cachedRecords [self._currentRecord]:
+      # Nothing has changed - no need to do anything
+      return self.current
+
     else:
       self._currentRecord = record
       self.current = self._cachedRecords[self._currentRecord]





reply via email to

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