commit-gnue
[Top][All Lists]
Advanced

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

[gnue] r10124 - trunk/gnue-forms/src/GFObjects


From: reinhard
Subject: [gnue] r10124 - trunk/gnue-forms/src/GFObjects
Date: Thu, 10 Dec 2009 07:15:30 -0600 (CST)

Author: reinhard
Date: 2009-12-10 07:15:30 -0600 (Thu, 10 Dec 2009)
New Revision: 10124

Modified:
   trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Indicate status change also for change of current record in non-focus blocks.


Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py   2009-12-10 12:54:57 UTC (rev 
10123)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py   2009-12-10 13:15:30 UTC (rev 
10124)
@@ -551,6 +551,8 @@
         self.__current_record_changed(True)
         if self._form.get_focus_block() is self:
             self.__update_record_status()
+        else:
+            self._form.status_changed()
 
     # -------------------------------------------------------------------------
 
@@ -571,6 +573,8 @@
         self.__current_record_changed(True)
         if self._form.get_focus_block() is self:
             self.__update_record_status()
+        else:
+            self._form.status_changed()
 
     # -------------------------------------------------------------------------
 
@@ -1147,6 +1151,8 @@
             # Status could have changed from clean to modified
             if self._form.get_focus_block() is self:
                 self.__update_record_status()
+            else:
+                self._form.status_changed()
 
 
     # -------------------------------------------------------------------------
@@ -1213,6 +1219,8 @@
 
         if self._form.get_focus_block() is self:
             self.__update_record_status()
+        else:
+            self._form.status_changed()
 
     # -------------------------------------------------------------------------
 
@@ -1231,6 +1239,8 @@
 
         if self._form.get_focus_block() is self:
             self.__update_record_status()
+        else:
+            self._form.status_changed()
 
 
     # -------------------------------------------------------------------------
@@ -1379,10 +1389,16 @@
 
         elif self._form.get_focus_block() is self:
             # Current object is not bound to this block, but still a "member"
-            # of theis block, like an entry linked to this block via grid_link.
+            # of this block, like an entry linked to this block via grid_link.
             # We want to update the record status.
             self.__update_record_status()
 
+        else:
+            # The focus is not in the current block. We fire the form's
+            # ON-STATUSCHANGE trigger anyway, so the trigger code can
+            # enable/disable controls etc.
+            self._form.status_changed()
+
     # -------------------------------------------------------------------------
 
     def _focus_out(self):





reply via email to

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