diff options
Diffstat (limited to 'libs/ardour/file_source.cc')
-rw-r--r-- | libs/ardour/file_source.cc | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/libs/ardour/file_source.cc b/libs/ardour/file_source.cc index c5d9088ac5..4deece2f49 100644 --- a/libs/ardour/file_source.cc +++ b/libs/ardour/file_source.cc @@ -99,11 +99,7 @@ FileSource::existence_check () void FileSource::prevent_deletion () { - if (!(_flags & Destructive)) { - mark_immutable (); - } else { - _flags = Flag (_flags & ~(Removable|RemovableIfEmpty|RemoveAtDestroy)); - } + mark_immutable (); } bool @@ -517,20 +513,14 @@ out: void FileSource::mark_immutable () { - /* destructive sources stay writable, and their other flags don't change. */ - if (!(_flags & Destructive)) { - _flags = Flag (_flags & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy|CanRename)); - close(); - } + _flags = Flag (_flags & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy|CanRename)); + close(); } void FileSource::mark_immutable_except_write () { - /* destructive sources stay writable, and their other flags don't change. */ - if (!(_flags & Destructive)) { - _flags = Flag (_flags & ~(Removable|RemovableIfEmpty|RemoveAtDestroy|CanRename)); - } + _flags = Flag (_flags & ~(Removable|RemovableIfEmpty|RemoveAtDestroy|CanRename)); } void |