[Summary] Adding routes won't save session anymore, but will leave it dirty

This commit is contained in:
GZharun 2015-01-20 17:40:48 +02:00
parent 418e0d3d91
commit e56a5a2d8d

View file

@ -2128,8 +2128,7 @@ Session::new_midi_track (const ChanCount& input, const ChanCount& output, boost:
failed:
if (!new_routes.empty()) {
StateProtector sp (this);
add_routes (new_routes, false, false, true);
add_routes (new_routes, false, false, false);
if (instrument) {
for (RouteList::iterator r = new_routes.begin(); r != new_routes.end(); ++r) {
@ -2685,8 +2684,7 @@ Session::new_audio_track (int input_channels, int output_channels, TrackMode mod
failed:
if (!new_routes.empty()) {
StateProtector sp (this);
add_routes (new_routes, false, false, true);
add_routes (new_routes, false, false, false);
}
return ret;
@ -2771,8 +2769,7 @@ Session::new_audio_route (int input_channels, int output_channels, RouteGroup* r
failure:
if (!ret.empty()) {
StateProtector sp (this);
add_routes (ret, false, false, true); // autoconnect outputs only
add_routes (ret, false, false, false);
}
return ret;
@ -2888,8 +2885,7 @@ Session::new_route_from_template (uint32_t how_many, const std::string& template
out:
if (!ret.empty()) {
StateProtector sp (this);
add_routes (ret, false, false, true);
add_routes (ret, false, false, false);
IO::enable_connecting ();
}
@ -3788,8 +3784,6 @@ Session::reassign_track_numbers ()
SignalOrderRouteSorter sorter;
r.sort (sorter);
StateProtector sp (this);
for (RouteList::iterator i = r.begin(); i != r.end(); ++i) {
if (boost::dynamic_pointer_cast<Track> (*i)) {
(*i)->set_track_number(++tn);