diff options
author | Josh Blum | 2009-09-17 22:58:26 -0700 |
---|---|---|
committer | Josh Blum | 2009-09-17 22:58:26 -0700 |
commit | 3f16d0acf93bbe8da7690f209782783ae8afb1c6 (patch) | |
tree | f53f77201ae2d9eb120435e128128877ae9999ee /grc | |
parent | f7d6badfb78b5820ae7c2169a88cdbb56b5cd778 (diff) | |
download | gnuradio-3f16d0acf93bbe8da7690f209782783ae8afb1c6.tar.gz gnuradio-3f16d0acf93bbe8da7690f209782783ae8afb1c6.tar.bz2 gnuradio-3f16d0acf93bbe8da7690f209782783ae8afb1c6.zip |
bugfix: exclude disabled children from consideration in valid condition
Diffstat (limited to 'grc')
-rw-r--r-- | grc/base/Element.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/base/Element.py b/grc/base/Element.py index e77e7ce08..a57090f3b 100644 --- a/grc/base/Element.py +++ b/grc/base/Element.py @@ -50,11 +50,12 @@ class Element(object): def get_error_messages(self): """ Get the list of error messages from this element and all of its children. + Do not include the error messages from disabled children. Cleverly indent the children error messages for printing purposes. @return a list of error message strings """ error_messages = list(self._error_messages) #make a copy - for child in self.get_children(): + for child in filter(lambda c: c.get_enabled(), self.get_children()): for msg in child.get_error_messages(): error_messages.append("%s:\n\t%s"%(child, msg.replace("\n", "\n\t"))) return error_messages |