--- a/QTfrontend/util/DataManager.cpp Thu Apr 26 16:15:37 2012 +0200
+++ b/QTfrontend/util/DataManager.cpp Fri Apr 27 11:47:37 2012 +0200
@@ -40,6 +40,7 @@
m_defaultData = new QDir(datadir->absolutePath());
+ m_mapModel = NULL;
m_themeModel = NULL;
}
@@ -117,6 +118,15 @@
return "";
}
+MapModel * DataManager::mapModel()
+{
+ if (m_mapModel == NULL) {
+ m_mapModel = new MapModel();
+ m_mapModel->loadMaps();
+ }
+ return m_mapModel;
+}
+
ThemeModel * DataManager::themeModel()
{
if (m_themeModel == NULL) {
@@ -128,6 +138,7 @@
void DataManager::reload()
{
+ m_mapModel->loadMaps();
m_themeModel->loadThemes();
emit updated();
}