summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-03-29 18:30:48 +0200
committerRobin Gareus <robin@gareus.org>2015-03-29 18:30:48 +0200
commit4188fed0ee7b3c859cda341ddafbe18ea0e36e4b (patch)
treeb9f7c767327579046a66bcc2486e1c9c402cff82
parent9f25af7eec2a16807649405b01443cce6e06291a (diff)
don’t apply selection to new sessions
<Selection> should not be saved in global preferences, but there is no single point for catching that.
-rw-r--r--gtk2_ardour/ardour_ui.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 443bba7057..d4f696c3ee 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -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"));