added rewrite methods to element to separate from validation logic
[debian/gnuradio] / grc / gui / FlowGraph.py
index 007bb622c5f04e71a94b2ca1ebf33553676f640e..5e645be7274f8e56112915312b14d4755c1a9361 100644 (file)
@@ -291,12 +291,10 @@ class FlowGraph(Element):
 
        def update(self):
                """
+               Do a global rewrite and validate.
                Call update on all elements.
-               Validate twice:
-               1) elements call special rewrite rules that may break validation
-               2) elements should come up with the same results, validation can pass
                """
-               self.validate()
+               self.rewrite()
                self.validate()
                for element in self.get_elements(): element.update()