From 46efa2def1212dcb2610c545a78c8ab81bb22bbf Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 29 Sep 2018 16:29:21 +0200 Subject: Add main attribute to the filelist. Use QHash random seed hack in all places where QDomDocument is being used. --- src/audioextractor.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/audioextractor.cc') 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'"); -- cgit v1.2.3