{
XMLNode * root;
if ((root = global.root())) {
- XMLProperty * prop;
+ XMLProperty const * prop;
if ((prop = root->property ("id"))) {
set_id (prop->value());
}
ExportPreset::save (std::string const & filename)
{
save_instant_xml ();
+
if (global.root()) {
- global.set_filename (filename);
+ global.set_filename (filename);
global.write ();
}
}
if ((instant_xml = session.instant_xml ("ExportPresets"))) {
XMLNodeList children = instant_xml->children ("ExportPreset");
for (XMLNodeList::iterator it = children.begin(); it != children.end(); ++it) {
- XMLProperty * prop;
+ XMLProperty const * prop;
if ((prop = (*it)->property ("id")) && _id == PBD::UUID(prop->value())) {
return *it;
}