Fixed support for read/write of mapping visibility (solo and locked are still incomplete).

This commit is contained in:
Tats
2014-10-21 17:18:25 +00:00
parent b61b96a6df
commit 82aad45a97
3 changed files with 35 additions and 5 deletions
+4 -5
View File
@@ -210,14 +210,13 @@ void ProjectReader::parseMapping(const QDomElement& mapping)
}
else
_xml.raiseError(QObject::tr("Unsupported mapping type: %1.").arg(mappingAttrType));
// and then set some more attributes:
if (id != NULL_UID)
{
MappingManager& manager = _window->getMappingManager();
Mapping::ptr mapping = manager.getMappingById(id);
mapping->setSolo(isSolo);
mapping->setVisible(isVisible);
mapping->setLocked(isLocked);
_window->setMappingVisible(id, isVisible);
_window->setMappingSolo (id, isSolo);
_window->setMappingLocked (id, isLocked);
}
}