From 0e5d86a82536deca0937159cbfa0dd28580633bb Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 9 Jul 2014 10:09:49 -0400 Subject: [PATCH] don't save state when removing sources during session loading (though this should no longer happen) --- libs/ardour/session.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 65d9f59a58..9faa34dcc7 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -3351,7 +3351,7 @@ Session::remove_source (boost::weak_ptr src) } } - if (!(_state_of_the_state & InCleanup)) { + if (!(_state_of_the_state & StateOfTheState (InCleanup|Loading))) { /* save state so we don't end up with a session file referring to non-existent sources.