From e951a55d02178395692e4f86385d41c8ffac5f47 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 30 Jul 2018 17:28:47 +0200 Subject: Ignore state-changes during deletion Closing a session removes tracks, which triggers set_dirty(). There is no need to inform the UI or change the session's state. --- libs/ardour/session_state.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 6eb06d8c35..4b0a0d9e92 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -3674,7 +3674,7 @@ Session::set_dirty () } /* never mark session dirty during loading */ - if (_state_of_the_state & Loading) { + if (_state_of_the_state & (Loading | Deletion)) { return; } -- cgit v1.2.3