Ignore state-changes during deletion
authorRobin Gareus <robin@gareus.org>
Mon, 30 Jul 2018 15:28:47 +0000 (17:28 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 30 Jul 2018 15:47:29 +0000 (17:47 +0200)
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

index 6eb06d8c356abb6ba7edc3a76f6cec65d639c54f..4b0a0d9e925caf6fcd599b3481b68f8e3896f717 100644 (file)
@@ -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;
        }