# HG changeset patch # User Chris Cannam # Date 1417170805 0 # Node ID adfb2948fabf6d2e9670132036de35d97e99d7d8 # Parent a9141963b580056d81edee968f85944a3ea96694 Wait for source files to be ready diff -r a9141963b580 -r adfb2948fabf framework/Align.cpp --- a/framework/Align.cpp Fri Nov 21 13:31:15 2014 +0000 +++ b/framework/Align.cpp Fri Nov 28 10:33:25 2014 +0000 @@ -29,6 +29,7 @@ #include #include +#include bool Align::alignModel(Model *ref, Model *other) @@ -174,6 +175,10 @@ if (!rm) return false; // but this should have been tested already + while (!reference->isReady(0) || !rm->isReady(0)) { + qApp->processEvents(); + } + // Run an external program, passing to it paths to the main // model's audio file and the new model's audio file. It returns // the path in CSV form through stdout.