Ignore state-changes during deletion
[ardour.git] / 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;
        }