diff options
author | Sampo Savolainen <v2@iki.fi> | 2006-10-09 18:08:08 +0000 |
---|---|---|
committer | Sampo Savolainen <v2@iki.fi> | 2006-10-09 18:08:08 +0000 |
commit | af757a1b6abaea867445ba8783676d71c30d47a1 (patch) | |
tree | b74463b824d00d11bea0beb79c2ed6a5492f0444 /libs/ardour/session.cc | |
parent | 048526fde8a69e90dfe50b3116adfcd02678bace (diff) |
Give a different error message when AudioEngine::connect() tries to make
an connection which already exists.
Tempo bars will now stretch from top to bottom via a hackish but
approved scheme.
Disconnect route inputs and outputs when removing them from the session.
git-svn-id: svn://localhost/ardour2/trunk@961 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 8474eab523..f7f5ef7e8d 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -1926,6 +1926,10 @@ Session::remove_route (shared_ptr<Route> route) update_latency_compensation (false, false); set_dirty(); + + // We need to disconnect the routes inputs and outputs + route->disconnect_inputs(NULL); + route->disconnect_outputs(NULL); /* get rid of it from the dead wood collection in the route list manager */ |