diff options
author | Josh Blum <josh@joshknows.com> | 2009-08-26 11:23:23 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2009-08-26 11:23:23 -0700 |
commit | 854bed10dfb61e9f9feab5259a75e809941089ab (patch) | |
tree | 76397b4eb8c85b11cb831b6c2e3dd877f48276d4 /grc/gui | |
parent | 62abad680b43218bbacf03c19d35c068973de4b9 (diff) |
Added virtual sink and logic to clone port.
Tweaks to the base validation routines.
Validate twice in the update until rewrite functions are implemented.
Diffstat (limited to 'grc/gui')
-rw-r--r-- | grc/gui/ActionHandler.py | 2 | ||||
-rw-r--r-- | grc/gui/FlowGraph.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py index 9af580e8e1..0e64aa89d1 100644 --- a/grc/gui/ActionHandler.py +++ b/grc/gui/ActionHandler.py @@ -221,13 +221,11 @@ class ActionHandler: elif state == Actions.PORT_CONTROLLER_INC: if self.get_flow_graph().port_controller_modify_selected(1): self.get_flow_graph().update() - self.get_flow_graph().update() #2 times self.get_page().get_state_cache().save_new_state(self.get_flow_graph().export_data()) self.get_page().set_saved(False) elif state == Actions.PORT_CONTROLLER_DEC: if self.get_flow_graph().port_controller_modify_selected(-1): self.get_flow_graph().update() - self.get_flow_graph().update() #2 times self.get_page().get_state_cache().save_new_state(self.get_flow_graph().export_data()) self.get_page().set_saved(False) ################################################## diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py index f8028f199a..007bb622c5 100644 --- a/grc/gui/FlowGraph.py +++ b/grc/gui/FlowGraph.py @@ -292,8 +292,12 @@ class FlowGraph(Element): def update(self): """ 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.validate() for element in self.get_elements(): element.update() ########################################################################## |