summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-11-12 09:28:27 +0100
committerSebastian Koslowski <koslowski@kit.edu>2016-11-12 09:29:10 +0100
commit27b6192c51bd42d8dc90d3a326a1c66e18ddbb33 (patch)
treeb8c53fdc5a73cb8fc4294b16e051d04653650c21
parent1c3bd330ad8f6fc0bafe38fda928f6e76bb1974b (diff)
grc: fix initial setting of generate mode (issue #1089)
-rw-r--r--grc/gui/ActionHandler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py
index f18fcea3e1..6e96268956 100644
--- a/grc/gui/ActionHandler.py
+++ b/grc/gui/ActionHandler.py
@@ -515,8 +515,9 @@ class ActionHandler:
elif action == Actions.FLOW_GRAPH_NEW:
main.new_page()
if args:
+ flow_graph = main.get_flow_graph()
flow_graph._options_block.get_param('generate_options').set_value(args[0])
- flow_graph_update()
+ flow_graph_update(flow_graph)
elif action == Actions.FLOW_GRAPH_OPEN:
file_paths = args if args else OpenFlowGraphFileDialog(page.get_file_path()).run()
if file_paths: #open a new page for each file, show only the first