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