diff options
author | Robin Gareus <robin@gareus.org> | 2016-09-30 00:11:24 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-09-30 00:11:24 +0200 |
commit | 75f9a7cf1133e48c081e4ebd3d2a203eba7b665c (patch) | |
tree | aab1b2d051170011101fa6dabfd581e053e16f3c /libs/ardour/session_state.cc | |
parent | 10d05f0ee35d9177590271760ca2046eb3ac5371 (diff) |
don't include session-search paths with templates
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index d27d963646..0d385bf56a 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -1136,7 +1136,14 @@ Session::state (bool full_state) node->add_child_nocopy (*midi_port_stuff); } - node->add_child_nocopy (config.get_variables ()); + XMLNode& cfgxml (config.get_variables ()); + if (!full_state) { + /* exclude search-paths from template */ + cfgxml.remove_nodes_and_delete ("name", "audio-search-path"); + cfgxml.remove_nodes_and_delete ("name", "midi-search-path"); + cfgxml.remove_nodes_and_delete ("name", "raid-path"); + } + node->add_child_nocopy (cfgxml); node->add_child_nocopy (ARDOUR::SessionMetadata::Metadata()->get_state()); |