Author: reinhard
Date: 2007-01-09 16:00:16 -0600 (Tue, 09 Jan 2007)
New Revision: 9249
Modified:
trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Force save before query() only if the queried block or one of its details has
pending changes.
Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py 2007-01-09 20:54:39 UTC (rev
9248)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py 2007-01-09 22:00:16 UTC (rev
9249)
@@ -644,7 +644,9 @@
# Now, do the query.
self._focus_out()
- if not self._form._must_save():
+ # We only have to save if the queried block or one of its details has
+ # pending changes, not if any other unrelated block is dirty.
+ if self.is_pending() and not self._form._must_save():
return False
self.__in_query = True
try:
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue