1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 13:12:50 +00:00

make sure case handling in info IDs is consistent

This commit is contained in:
Marc Zinnschlag 2013-11-08 12:03:03 +01:00
parent 982024a328
commit a06aa881cb

View File

@ -7,6 +7,8 @@
#include <QLineEdit> #include <QLineEdit>
#include <QUuid> #include <QUuid>
#include <components/misc/stringops.hpp>
#include "../../model/world/data.hpp" #include "../../model/world/data.hpp"
#include "../../model/world/commands.hpp" #include "../../model/world/commands.hpp"
#include "../../model/world/columns.hpp" #include "../../model/world/columns.hpp"
@ -14,7 +16,7 @@
std::string CSVWorld::InfoCreator::getId() const std::string CSVWorld::InfoCreator::getId() const
{ {
std::string id = mTopic->text().toUtf8().constData(); std::string id = Misc::StringUtils::lowerCase (mTopic->text().toUtf8().constData());
std::string unique = QUuid::createUuid().toByteArray().data(); std::string unique = QUuid::createUuid().toByteArray().data();