diff options
author | Johannes Mueller <github@johannes-mueller.org> | 2017-08-19 19:45:08 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-20 21:09:30 +0200 |
commit | bd4db1e15139df141144310199b73c77d701c4b2 (patch) | |
tree | 49ed7331d6115d9bddcc4cd6a110423acfc299c9 /libs/ardour/route.cc | |
parent | 419b1c1cfdb2f6fee97312ab5b56a8579623534a (diff) |
Remove the template description XMLNode before saving the template
... to avoid that the new template description is concatenated to the old one.
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 5cd9b576a5..e89b9b8b91 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -4022,6 +4022,7 @@ Route::save_as_template (const string& path, const string& name, const string& d XMLNode& node (state (false)); node.set_property (X_("name"), name); + node.remove_nodes (X_("description")); if (!description.empty()) { XMLNode* desc = new XMLNode(X_("description")); XMLNode* desc_cont = new XMLNode(X_("content"), description); |