From dec99c8cac1cdd8a0048beeaa57f5df445eba452 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sun, 11 Mar 2018 15:21:01 -0700 Subject: [PATCH] Fix bug where saving shared map assets wouldn't work --- project.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);