Author: reinhard
Date: 2007-06-18 09:32:10 -0500 (Mon, 18 Jun 2007)
New Revision: 9722
Modified:
trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Fixed update of dropdowns on apply_filter() or discard_filter().
Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py 2007-06-18 14:15:23 UTC (rev
9721)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py 2007-06-18 14:32:10 UTC (rev
9722)
@@ -566,8 +566,8 @@
"""
self.mode = 'normal'
+ self.__refresh_choices()
self.__current_record_changed(True)
- self.__refresh_choices()
# -------------------------------------------------------------------------
@@ -594,6 +594,11 @@
# Update list of allowed values
self.__refresh_choices()
+ # This seems redundant at first sight, but we must make sure to update
+ # the UI after we have changed the available choices, otherwise the UI
+ # will get confused. Doing this here makes sure it even is done for
+ # detail blocks that were queried before through the master.
+ self.__current_record_changed(True)
# -------------------------------------------------------------------------
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue