diff options
Diffstat (limited to 'src/audioextractor.cc')
-rw-r--r-- | src/audioextractor.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/audioextractor.cc b/src/audioextractor.cc index ed1aa5a..cf6e9e9 100644 --- a/src/audioextractor.cc +++ b/src/audioextractor.cc @@ -35,6 +35,8 @@ #include "project.h" +extern Q_CORE_EXPORT QBasicAtomicInt qt_qhash_seed; + #define INSTRUMENT_VERSION "2.0" typedef struct @@ -215,6 +217,10 @@ void AudioExtractor::exportSelections() sf_close(audiodata[i].fh); } + // Ugly hack to ensure the xml attribute order is the same each time a save + // or export is performed. + qt_qhash_seed.store(0); + QDomDocument doc; QDomProcessingInstruction header = doc.createProcessingInstruction("xml", "version='1.0' encoding='UTF-8'"); |