diff options
Diffstat (limited to 'grc')
-rw-r--r-- | grc/converter/flow_graph.py | 2 | ||||
-rw-r--r-- | grc/gui/VariableEditor.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/grc/converter/flow_graph.py b/grc/converter/flow_graph.py index d20c67703c..5b4a750ef6 100644 --- a/grc/converter/flow_graph.py +++ b/grc/converter/flow_graph.py @@ -82,6 +82,8 @@ def convert_block(data): (param.findtext('key'), param.findtext('value')) for param in data.findall('param') )) + if block_id == "import": + params["imports"] = params.pop("import") states = OrderedDict() x, y = ast.literal_eval(params.pop('_coordinate', '(10, 10)')) states['coordinate'] = yaml.ListFlowing([x, y]) diff --git a/grc/gui/VariableEditor.py b/grc/gui/VariableEditor.py index c179c8bc84..ec4ad611ee 100644 --- a/grc/gui/VariableEditor.py +++ b/grc/gui/VariableEditor.py @@ -174,7 +174,7 @@ class VariableEditor(Gtk.VBox): # Block specific values if block: if block.key == 'import': - value = block.params['import'].get_value() + value = block.params['imports'].get_value() elif block.key != "variable": value = "<Open Properties>" sp('editable', False) |