diff options
Diffstat (limited to 'src/projectserialiser.cc')
-rw-r--r-- | src/projectserialiser.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/projectserialiser.cc b/src/projectserialiser.cc index f70e6dd..f80fa36 100644 --- a/src/projectserialiser.cc +++ b/src/projectserialiser.cc @@ -139,6 +139,11 @@ QString ProjectSerialiser::serialise(const Project& project) instruments.appendChild(instrument); + auto export_path = doc.createElement("export_path"); + export_path.setAttribute("prefix", i.getPrefix()); + export_path.appendChild(doc.createTextNode(i.export_path)); + instrument.appendChild(export_path); + auto instrument_name = doc.createElement("instrument_name"); instrument_name.appendChild(doc.createTextNode(i.instrument_name)); instrument.appendChild(instrument_name); @@ -231,6 +236,9 @@ bool ProjectSerialiser::deserialise(const QString& data, Project& project) instr.threshold = instrument["threshold"].toFloat(); + instr.export_path = instrument("export_path").text(); + instr.prefix = instrument("export_path")["prefix"]; + auto selections = instrument("regions"); instr.selections.nextid = selections["nextid"].toInt(); instr.selections.act = selections["act"].toInt(); |