diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-30 18:01:17 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-30 18:01:17 +0200 |
commit | f52f23b12d63ce5dad5aee564915278795114878 (patch) | |
tree | 93de42400c966256f6785a9b3c6ab267daae61b9 /gtk2_ardour/template_dialog.cc | |
parent | d11d8b8a96aa91143f2f08c13c27047093851236 (diff) |
Fix scope in 4c077010a
Diffstat (limited to 'gtk2_ardour/template_dialog.cc')
-rw-r--r-- | gtk2_ardour/template_dialog.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk2_ardour/template_dialog.cc b/gtk2_ardour/template_dialog.cc index 65fa30d58b..a5bbcd4089 100644 --- a/gtk2_ardour/template_dialog.cc +++ b/gtk2_ardour/template_dialog.cc @@ -434,10 +434,9 @@ TemplateManager::save_template_desc () XMLNode* desc = new XMLNode (X_("description")); XMLNode* dn = new XMLNode (X_("content"), desc_txt); desc->add_child_nocopy (*dn); + tree.root()->add_child_nocopy (*desc); } - tree.root()->add_child_nocopy (*desc); - if (!tree.write ()) { error << string_compose(X_("Could not write to template file \"%1\"."), file_path) << endmsg; return; |