diff options
author | Sampo Savolainen <v2@iki.fi> | 2007-04-09 18:44:49 +0000 |
---|---|---|
committer | Sampo Savolainen <v2@iki.fi> | 2007-04-09 18:44:49 +0000 |
commit | 39059bf339feb7fb9b0e575e08139556131f7ad5 (patch) | |
tree | 1d9d81e46c75ddf78e182d4ef9ff8e213037f89d | |
parent | b4b891b6ab4741b132d306188f47a275e6119a5b (diff) |
Fix "Remove Last Capture"
git-svn-id: svn://localhost/ardour2/trunk@1692 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/ardour/audiofilesource.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/audiofilesource.cc b/libs/ardour/audiofilesource.cc index 3a02c4c4b0..b9aa977e0a 100644 --- a/libs/ardour/audiofilesource.cc +++ b/libs/ardour/audiofilesource.cc @@ -248,7 +248,10 @@ AudioFileSource::set_state (const XMLNode& node) void AudioFileSource::mark_for_remove () { - if (!writable()) { + // This operation is not allowed for sources for destructive tracks or embedded files. + // Fortunately mark_for_remove() is never called for embedded files. This function + // must be fixed if that ever happens. + if (_flags & Destructive) { return; } |