commit-gnue
[Top][All Lists]
Advanced

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

[gnue] r8744 - in trunk/gnue-forms/src: . GFObjects


From: reinhard
Subject: [gnue] r8744 - in trunk/gnue-forms/src: . GFObjects
Date: Tue, 10 Oct 2006 17:18:58 -0500 (CDT)

Author: reinhard
Date: 2006-10-10 17:18:57 -0500 (Tue, 10 Oct 2006)
New Revision: 8744

Modified:
   trunk/gnue-forms/src/GFForm.py
   trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Generally update UI for the object currently editing when it has moved to
another row.


Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py      2006-10-10 21:50:05 UTC (rev 8743)
+++ trunk/gnue-forms/src/GFForm.py      2006-10-10 22:18:57 UTC (rev 8744)
@@ -909,6 +909,9 @@
                     self.__last_focus_index)
         self._currentEntry.uiWidget._ui_set_focus_(
                 self._currentEntry._visibleIndex)
+        if hasattr(self._currentEntry, '_displayHandler') \
+                and self._currentEntry._displayHandler.editing:
+            self._currentEntry._displayHandler.generateRefreshEvent()
         self.__last_focus_object = self._currentEntry
         self.__last_focus_index = self._currentEntry._visibleIndex
 

Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py   2006-10-10 21:50:05 UTC (rev 
8743)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py   2006-10-10 22:18:57 UTC (rev 
8744)
@@ -366,10 +366,6 @@
             entry = self._form._currentEntry
             if getattr(entry, '_block', None) == self:
                 self._form.adjust_ui_focus()
-                # We are still in editing mode, so we have to update the entry
-                # editor
-                if hasattr(entry, '_displayHandler'):
-                    entry._displayHandler.generateRefreshEvent()
         else:
             self.__adjust_scrollbars()
 





reply via email to

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