From 39059bf339feb7fb9b0e575e08139556131f7ad5 Mon Sep 17 00:00:00 2001 From: Sampo Savolainen Date: Mon, 9 Apr 2007 18:44:49 +0000 Subject: [PATCH] Fix "Remove Last Capture" git-svn-id: svn://localhost/ardour2/trunk@1692 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/audiofilesource.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }