mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
- fixed update presence detection in launcher
This commit is contained in:
@@ -106,10 +106,10 @@ QVariantMap CModList::copyField(QVariantMap data, QString from, QString to)
|
||||
|
||||
for (auto it = data.begin(); it != data.end(); it++)
|
||||
{
|
||||
QVariant object = it.value();
|
||||
QVariantMap modConf = it.value().toMap();
|
||||
|
||||
object.toMap().insert(to, object.toMap().value(from));
|
||||
renamed.insert(it.key(), object.toMap());
|
||||
modConf.insert(to, modConf.value(from));
|
||||
renamed.insert(it.key(), modConf);
|
||||
}
|
||||
return renamed;
|
||||
}
|
||||
|
Reference in New Issue
Block a user