Fix bug where saving shared map assets wouldn't work
This commit is contained in:
parent
bd2c782021
commit
dec99c8cac
1 changed files with 3 additions and 1 deletions
|
@ -740,7 +740,9 @@ void Project::saveMap(Map *map) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Project::updateMapAttributes(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
|
// Deep copy
|
||||||
QMap<QString, QString> attrs = mapAttributes.value(map->name);
|
QMap<QString, QString> attrs = mapAttributes.value(map->name);
|
||||||
|
|
Loading…
Reference in a new issue