don’t apply selection to new sessions

<Selection> should not be saved in
global preferences, but there is no single point
for catching that.
This commit is contained in:
Robin Gareus
2015-03-29 18:30:48 +02:00
parent 9f25af7eec
commit 4188fed0ee

View File

@@ -3147,6 +3147,7 @@ ARDOUR_UI::build_session (const std::string& path, const std::string& snap_name,
XMLNode* n;
n = Config->instant_xml (X_("Editor"));
if (n) {
n->remove_nodes_and_delete ("Selection"); // no not apply selection to new sessions.
new_session->add_instant_xml (*n, false);
}
n = Config->instant_xml (X_("Mixer"));