diff options
author | Håkon Vågsether <haakonsv@gmail.com> | 2017-08-05 15:17:51 +0200 |
---|---|---|
committer | Håkon Vågsether <haakonsv@gmail.com> | 2017-08-05 15:22:12 +0200 |
commit | a286af15a37f6e040252a5c9b4b9e0c0e3c810a0 (patch) | |
tree | 8b40321de67b958d43a4d05d4117aed8bfede0b9 | |
parent | 5869dba3e8a9cefc1203ec9037e01e95a847f7f0 (diff) |
Fixing the generate options chooser from the new flowgraph menu.
Without this change, the single quotes will be part of the string, like "'no_gui'"
(And it will always default to "qt_gui")
-rw-r--r-- | grc/gui/Application.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/gui/Application.py b/grc/gui/Application.py index 458210a3f4..ea7ad5cd80 100644 --- a/grc/gui/Application.py +++ b/grc/gui/Application.py @@ -594,7 +594,7 @@ class Application(Gtk.Application): main.new_page() if args: flow_graph = main.current_page.flow_graph - flow_graph._options_block.get_param('generate_options').set_value(args[0]) + flow_graph._options_block.params['generate_options'].set_value(str(args[0])[1:-1]) flow_graph_update(flow_graph) elif action == Actions.FLOW_GRAPH_OPEN: file_paths = args[0] if args[0] else FileDialogs.OpenFlowGraph(main, page.file_path).run() |