1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

fix vmap name

This commit is contained in:
Laserlicht 2024-10-07 22:55:48 +02:00
parent 7694e2da4b
commit f7039435da
2 changed files with 3 additions and 1 deletions

View File

@ -809,6 +809,7 @@ void SelectionTab::parseMaps(const std::unordered_set<ResourcePath> & files)
{
auto mapInfo = std::make_shared<ElementInfo>();
mapInfo->mapInit(file.getName());
mapInfo->name = mapInfo->getNameForList();
if (isMapSupported(*mapInfo))
allItems.push_back(mapInfo);
@ -988,6 +989,6 @@ void SelectionTab::ListItem::updateItem(std::shared_ptr<ElementInfo> info, bool
iconLossCondition->setFrame(info->mapHeader->defeatIconIndex, 0);
labelName->setMaxWidth(185);
}
labelName->setText(info->getNameForList());
labelName->setText(info->name);
labelName->setColor(color);
}

View File

@ -33,6 +33,7 @@ public:
ElementInfo() : CMapInfo() { }
~ElementInfo() { }
std::string folderName = "";
std::string name = "";
bool isFolder = false;
};