From 0a7a622dab3bc13706a72a13e64cc53192fec9a8 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 15 Oct 2014 21:12:19 -0400 Subject: [PATCH] when cancelling an import, call DropReferences so that the Session forgets about the new sources. Not doing this leaves the sources in the session list and then the session fails to open on next load because the files are not there. Arguably we should not announce the new files until they are complete, but this is a simpler fix for now. --- libs/ardour/import.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/ardour/import.cc b/libs/ardour/import.cc index 7c6a0da85f..a3d93c7e43 100644 --- a/libs/ardour/import.cc +++ b/libs/ardour/import.cc @@ -425,6 +425,8 @@ remove_file_source (boost::shared_ptr source) { boost::shared_ptr fs = boost::dynamic_pointer_cast (source); + fs->DropReferences (); + if (fs) { ::g_unlink (fs->path().c_str()); }