[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8922 - in trunk/gnue-forms/src: . GFObjects
From: |
reinhard |
Subject: |
[gnue] r8922 - in trunk/gnue-forms/src: . GFObjects |
Date: |
Tue, 24 Oct 2006 15:10:05 -0500 (CDT) |
Author: reinhard
Date: 2006-10-24 15:10:04 -0500 (Tue, 24 Oct 2006)
New Revision: 8922
Modified:
trunk/gnue-forms/src/GFForm.py
trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Refresh toobar whenever the status of the record changes (this fixes the bug
that the save button was not active immediately after deleting a record).
Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py 2006-10-24 19:10:37 UTC (rev 8921)
+++ trunk/gnue-forms/src/GFForm.py 2006-10-24 20:10:04 UTC (rev 8922)
@@ -1139,7 +1139,10 @@
self._currentPage.focus_in()
self._currentEntry.focus_in()
- self.refreshUIEvents()
+ # The Focus-In trigger of the block has already refreshed the toolbar,
+ # except for the case where the new entry has no block.
+ if self._currentBlock is None:
+ self.refreshUIEvents()
# -------------------------------------------------------------------------
Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py 2006-10-24 19:10:37 UTC (rev
8921)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py 2006-10-24 20:10:04 UTC (rev
8922)
@@ -1247,9 +1247,7 @@
for field in self._fieldList:
field._event_new_current_record()
- self._form.refreshUIEvents()
-
# -------------------------------------------------------------------------
# Update the record status
# -------------------------------------------------------------------------
@@ -1277,7 +1275,9 @@
self._form.update_record_status(record_status)
+ self._form.refreshUIEvents()
+
# -------------------------------------------------------------------------
# Adjust the scrollbars connected to this block
# -------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8922 - in trunk/gnue-forms/src: . GFObjects,
reinhard <=