QTfrontend/util/DataManager.cpp
branchphysfslayer
changeset 7928 88fde28bbda6
parent 7774 27f9b9362f47
parent 7824 3df73ec7fcf2
child 8049 133e22b5c410
equal deleted inserted replaced
7778:3331b30e4ef1 7928:88fde28bbda6
   169     return m_bindsModel;
   169     return m_bindsModel;
   170 }
   170 }
   171 
   171 
   172 void DataManager::reload()
   172 void DataManager::reload()
   173 {
   173 {
   174     m_gameStyleModel->loadGameStyles();
   174     // removed for now (also code was a bit unclean, could lead to segfault if
   175     m_hatModel->loadHats();
   175     // reload() is called before all members are initialized - because currently
   176     m_mapModel->loadMaps();
   176     // they are initialized in the getter methods rather than the constructor)
   177     m_themeModel->loadThemes();
       
   178     emit updated();
       
   179 }
   177 }
   180 
   178 
   181 void DataManager::resetColors()
   179 void DataManager::resetColors()
   182 {
   180 {
   183     for(int i = colorsModel()->rowCount() - 1; i >= 0; --i)
   181     for(int i = colorsModel()->rowCount() - 1; i >= 0; --i)