diff options
author | Seth Hitefield <sdhitefield@gmail.com> | 2014-07-02 17:46:31 -0400 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2014-08-26 10:40:22 +0200 |
commit | a8c8af1d032f5622168c3b2636800f1e6647267b (patch) | |
tree | 68e52b734b279c80681c26af5009836db40670c2 /grc/gui/ActionHandler.py | |
parent | 3c165ab4a17473de1e642830c74027274f4a5a5c (diff) |
grc: adding version information to flowgraph files using XML processing instructions
Diffstat (limited to 'grc/gui/ActionHandler.py')
-rw-r--r-- | grc/gui/ActionHandler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py index 60fa07050d..a8c91b4978 100644 --- a/grc/gui/ActionHandler.py +++ b/grc/gui/ActionHandler.py @@ -449,7 +449,8 @@ class ActionHandler: #otherwise try to save else: try: - ParseXML.to_file(self.get_flow_graph().export_data(), self.get_page().get_file_path()) + instructions = {'created': self.platform.get_version_short(), 'compatible': '3.6.1', 'locked': True} + ParseXML.to_file_with_instructions(self.get_flow_graph().export_data(), self.get_page().get_file_path(), instructions) self.get_flow_graph().grc_file_path = self.get_page().get_file_path() self.get_page().set_saved(True) except IOError: |