diff --git a/project.cpp b/project.cpp index dc4dd11b..29cbe6ae 100755 --- a/project.cpp +++ b/project.cpp @@ -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 attrs = mapAttributes.value(map->name);