From 0477d11476feb873e4ed3e428dd4d3c510d7e0b0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 15 Oct 2014 21:12:19 -0400 Subject: 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 6b58621979..1303c85511 100644 --- a/libs/ardour/import.cc +++ b/libs/ardour/import.cc @@ -430,6 +430,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()); } -- cgit v1.2.3