mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
move the point of adding a new MIDI track until *after* the instrument is added
This seems ripe with all kinds of subtle breakage potential. Sigh.
This commit is contained in:
parent
9d60197ffb
commit
fac8d84786
1 changed files with 2 additions and 1 deletions
|
|
@ -2378,7 +2378,6 @@ Session::new_midi_track (const ChanCount& input, const ChanCount& output, bool s
|
|||
failed:
|
||||
if (!new_routes.empty()) {
|
||||
StateProtector sp (this);
|
||||
add_routes (new_routes, true, true, false, order);
|
||||
|
||||
if (instrument) {
|
||||
for (RouteList::iterator r = new_routes.begin(); r != new_routes.end(); ++r) {
|
||||
|
|
@ -2402,6 +2401,8 @@ Session::new_midi_track (const ChanCount& input, const ChanCount& output, bool s
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
add_routes (new_routes, true, true, false, order);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue