Fix bug where saving shared map assets wouldn't work

This commit is contained in:
Marcus Huderle 2018-03-11 15:21:01 -07:00
parent bd2c782021
commit dec99c8cac

View file

@ -740,7 +740,9 @@ void Project::saveMap(Map *map) {
}
void Project::updateMapAttributes(Map* map) {
mapAttributesTableMaster.insert(map->index.toInt(nullptr, 0), map->name);
if (!mapAttributesTableMaster.contains(map->index.toInt())) {
mapAttributesTableMaster.insert(map->index.toInt(), map->name);
}
// Deep copy
QMap<QString, QString> attrs = mapAttributes.value(map->name);