[Summary] Making existing session to reconnect tracks in it's opened

[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 461823]
This commit is contained in:
Grygorii Zharun 2014-05-20 04:19:03 -05:00
parent dfc0b58d14
commit 89d4b4fb9c

View file

@ -357,7 +357,8 @@ Session::Session (AudioEngine &eng,
/* Waves Tracks: fill session with tracks basing on the amount of inputs. /* Waves Tracks: fill session with tracks basing on the amount of inputs.
* each available input must have corresponding track when session starts. * each available input must have corresponding track when session starts.
*/ */
if (_is_new && ARDOUR::Profile->get_trx () ) { if (_is_new ) {
if ( ARDOUR::Profile->get_trx () ) {
uint32_t how_many (0); uint32_t how_many (0);
std::vector<std::string> inputs; std::vector<std::string> inputs;
@ -372,6 +373,9 @@ Session::Session (AudioEngine &eng,
throw failed_constructor (); throw failed_constructor ();
} }
} }
} else {
reconnect_existing_routes(true, true);
}
_is_new = false; _is_new = false;