Don't automatically create empty MAPSEC display names

This commit is contained in:
GriffinR 2025-01-22 15:49:16 -05:00
parent a00636260c
commit 0cf7a45890

View File

@ -2426,7 +2426,7 @@ void Project::removeMapsec(const QString &idName) {
}
void Project::setMapsecDisplayName(const QString &idName, const QString &displayName) {
if (this->mapSectionDisplayNames[idName] == displayName)
if (this->mapSectionDisplayNames.value(idName) == displayName)
return;
this->mapSectionDisplayNames[idName] = displayName;
this->hasUnsavedDataChanges = true;