mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:06:08 +00:00
UI: ZonesWindow: Fix source init.
This commit is contained in:
parent
6f12f97634
commit
3aef52b5ed
@ -306,8 +306,8 @@ void ZoneListModel::initZoneTypes()
|
||||
for (auto &typeVar : zoneTypes) {
|
||||
ZoneTypeWrapper zoneType(typeVar);
|
||||
zoneType.setIndex(index++);
|
||||
m_zoneTypesMap.insert(zoneType.code(), typeVar);
|
||||
m_zoneTypes.append(typeVar);
|
||||
m_zoneTypesMap.insert(zoneType.code(), zoneType.map());
|
||||
m_zoneTypes.append(zoneType.map());
|
||||
}
|
||||
}
|
||||
|
||||
@ -328,7 +328,7 @@ void ZoneListModel::initZoneSources()
|
||||
for (auto &sourceVar : zoneSources) {
|
||||
ZoneSourceWrapper zoneSource(sourceVar);
|
||||
zoneSource.setIndex(index++);
|
||||
m_zoneSourcesMap.insert(zoneSource.code(), sourceVar);
|
||||
m_zoneSources.append(sourceVar);
|
||||
m_zoneSourcesMap.insert(zoneSource.code(), zoneSource.map());
|
||||
m_zoneSources.append(zoneSource.map());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user