mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Fixed support for read/write of mapping visibility (solo and locked are still incomplete).
This commit is contained in:
+4
-5
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user