diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-02-09 17:00:25 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-02-09 17:00:25 +0000 |
commit | 09f898d553de755492889eeb98b10ea24b298c11 (patch) | |
tree | de8f77622c655c5c5b379da6d38c6e935a779953 /libs/ardour/audiofilesource.cc | |
parent | 14543eb1374dc51834385d2f3886f1e6068223c5 (diff) |
fixes for new button code; don't even make destructible sources non-writable; add a new binding/bindable for hte shuttle controller
git-svn-id: svn://localhost/ardour2/trunk@1440 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audiofilesource.cc')
-rw-r--r-- | libs/ardour/audiofilesource.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/ardour/audiofilesource.cc b/libs/ardour/audiofilesource.cc index 409fc04683..218eb783a9 100644 --- a/libs/ardour/audiofilesource.cc +++ b/libs/ardour/audiofilesource.cc @@ -581,5 +581,11 @@ AudioFileSource::safe_file_extension(string file) void AudioFileSource::mark_immutable () { - _flags = Flag (_flags & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy|CanRename)); + /* destructive sources stay writable, and their other flags don't + change. + */ + + if (!(_flags & Destructive)) { + _flags = Flag (_flags & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy|CanRename)); + } } |