# HG changeset patch # User Chris Cannam # Date 1572353264 0 # Node ID 604393795ee5f7b027312a7f59d687bf28291b46 # Parent ec8f21a20fa7c03bd75b22504d931f42b8f51b3c If no local filename (e.g. when decoded to memory), get the local filename from the file source (e.g. cached version of encoded file) diff -r ec8f21a20fa7 -r 604393795ee5 framework/Align.cpp --- a/framework/Align.cpp Thu Oct 17 11:13:11 2019 +0100 +++ b/framework/Align.cpp Tue Oct 29 12:47:44 2019 +0000 @@ -505,7 +505,14 @@ } QString refPath = reference->getLocalFilename(); + if (refPath == "") { + refPath = FileSource(reference->getLocation()).getLocalFilename(); + } + QString otherPath = other->getLocalFilename(); + if (otherPath == "") { + otherPath = FileSource(other->getLocation()).getLocalFilename(); + } if (refPath == "" || otherPath == "") { error = "Failed to find local filepath for wave-file model";