equal
deleted
inserted
replaced
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) |