diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-09-29 16:29:21 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-09-29 16:29:21 +0200 |
commit | 46efa2def1212dcb2610c545a78c8ab81bb22bbf (patch) | |
tree | 5bf8e1991126ba5795cdde44578a370a7a1b4a1f /src/audioextractor.cc | |
parent | c975247f9742bd7fcf5ae7d8ab174ed8728bb64c (diff) |
Add main attribute to the filelist. Use QHash random seed hack in all places where QDomDocument is being used.
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'"); |