Ticket #6782: weather_screens.patch
| File weather_screens.patch, 1.8 KB (added by , 17 years ago) |
|---|
-
mythplugins/mythweather/mythweather/weatherSetup.cpp
264 264 265 265 QStringList types; 266 266 267 ScreenListMap m_ScreenListMap = loadScreens();267 ScreenListMap screenListMap = loadScreens(); 268 268 269 ScreenListMap::const_iterator i = m_ScreenListMap.constBegin();270 while (i != m_ScreenListMap.constEnd())269 ScreenListMap::const_iterator i = screenListMap.constBegin(); 270 while (i != screenListMap.constEnd()) 271 271 { 272 272 273 si = m_ScreenListMap[i.key()];273 si = screenListMap[i.key()]; 274 274 types = si->dataTypes; 275 275 si->units = ENG_UNITS; 276 276 … … 329 329 QString src = db.value(4).toString(); 330 330 uint draworder = db.value(5).toUInt(); 331 331 332 si = m_ScreenListMap[name]; 332 si = new ScreenListInfo(*screenListMap[name]); 333 333 334 // Clear types first as we will re-insert the values from the database 334 335 si->types.clear(); 335 336 types = si->dataTypes; -
mythplugins/mythweather/mythweather/weatherUtils.h
51 51 class ScreenListInfo 52 52 { 53 53 public: 54 ScreenListInfo() {} 55 ScreenListInfo(const ScreenListInfo &info) 56 : name(info.name), types(info.types), dataTypes(info.dataTypes), 57 helptxt(info.helptxt), sources(info.sources), units(info.units), 58 hasUnits(info.hasUnits), multiLoc(info.multiLoc) {} 59 54 60 TypeListInfo GetCurrentTypeList(void) const; 55 61 56 62 public:
