don't include session-search paths with templates

This commit is contained in:
Robin Gareus 2016-09-30 00:11:24 +02:00
parent 10d05f0ee3
commit 75f9a7cf11

View file

@ -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());