From e56a5a2d8dc213770a7650a502533ee4f5fc4c3a Mon Sep 17 00:00:00 2001 From: GZharun Date: Tue, 20 Jan 2015 17:40:48 +0200 Subject: [PATCH] [Summary] Adding routes won't save session anymore, but will leave it dirty --- libs/ardour/session.cc | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 212f257141..b00d098326 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -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 (*i)) { (*i)->set_track_number(++tn);