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)
# -------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.