commit-gnue
[Top][All Lists]
Advanced

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

[gnue] r7729 - trunk/gnue-forms/src


From: reinhard
Subject: [gnue] r7729 - trunk/gnue-forms/src
Date: Tue, 12 Jul 2005 13:59:19 -0500 (CDT)

Author: reinhard
Date: 2005-07-12 13:59:18 -0500 (Tue, 12 Jul 2005)
New Revision: 7729

Modified:
   trunk/gnue-forms/src/GFForm.py
Log:
Only move the focus if there was an exception in a different block than the
current block.


Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py      2005-07-12 18:48:40 UTC (rev 7728)
+++ trunk/gnue-forms/src/GFForm.py      2005-07-12 18:59:18 UTC (rev 7729)
@@ -645,7 +645,7 @@
       return _('Form is readonly')
     
     message = None
-    newBlock = self._currentBlock       # block to jump to after commit
+    newBlock = None                     # block to jump to after commit
     self.dispatchEvent ('beginWAIT', _form = self)
 
     try:
@@ -714,7 +714,8 @@
     finally:
       # Make sure the current block still has the focus, even if an exception
       # occured during commit or in a trigger
-      self.findAndChangeFocus (newBlock)
+      if newBlock is not None and newBlock != self._currentBlock:
+        self.findAndChangeFocus (newBlock)
       self.dispatchEvent ('endWAIT', _form = self)
 
     gLeave (4)





reply via email to

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