QTfrontend/util/DataManager.cpp
changeset 7824 3df73ec7fcf2
parent 7681 26978d581070
child 7928 88fde28bbda6
equal deleted inserted replaced
7823:46f115569045 7824:3df73ec7fcf2
   199     return m_bindsModel;
   199     return m_bindsModel;
   200 }
   200 }
   201 
   201 
   202 void DataManager::reload()
   202 void DataManager::reload()
   203 {
   203 {
   204     m_gameStyleModel->loadGameStyles();
   204     // removed for now (also code was a bit unclean, could lead to segfault if
   205     m_hatModel->loadHats();
   205     // reload() is called before all members are initialized - because currently
   206     m_mapModel->loadMaps();
   206     // they are initialized in the getter methods rather than the constructor)
   207     m_themeModel->loadThemes();
       
   208     emit updated();
       
   209 }
   207 }
   210 
   208 
   211 void DataManager::resetColors()
   209 void DataManager::resetColors()
   212 {
   210 {
   213     for(int i = colorsModel()->rowCount() - 1; i >= 0; --i)
   211     for(int i = colorsModel()->rowCount() - 1; i >= 0; --i)