diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-02-25 21:35:07 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-17 16:31:49 -0600 |
commit | a4d7b45fe00996fd37a1af6d5be8c913a0b3bbf4 (patch) | |
tree | 35463bfb8a0b7def08b254378873305b7d0f1aa0 /libs/ardour/source.cc | |
parent | e89b0cfd27be8dc8ea8099d624adb999d957fa3e (diff) |
remove destructive/tape mode tracks
Diffstat (limited to 'libs/ardour/source.cc')
-rw-r--r-- | libs/ardour/source.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/libs/ardour/source.cc b/libs/ardour/source.cc index e5f98c171a..58459e9e24 100644 --- a/libs/ardour/source.cc +++ b/libs/ardour/source.cc @@ -173,7 +173,7 @@ Source::set_state (const XMLNode& node, int version) /* old style, from the period when we had DestructiveFileSource */ if (node.get_property (X_("destructive"), str)) { - _flags = Flag (_flags | Destructive); + throw (SessionException (_("This session uses destructive tracks, which are no longer supported. Please use an older version of Ardour to work with this session"))); } if (version < 3000) { @@ -181,9 +181,7 @@ Source::set_state (const XMLNode& node, int version) and therefore cannot be removable/writable etc. etc.; 2.X sometimes marks sources as removable which shouldn't be. */ - if (!(_flags & Destructive)) { - _flags = Flag (_flags & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy|CanRename)); - } + _flags = Flag (_flags & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy|CanRename)); } return 0; @@ -280,15 +278,11 @@ Source::check_for_analysis_data_on_disk () void Source::mark_for_remove () { - // This operation is not allowed for sources for destructive tracks or out-of-session files. + // This operation is not allowed for sources for out-of-session files. /* XXX need a way to detect _within_session() condition here - move it from FileSource? */ - if ((_flags & Destructive)) { - return; - } - _flags = Flag (_flags | Removable | RemoveAtDestroy); } |