QTfrontend/util/DataManager.cpp
changeset 9744 1ee4842a9c86
parent 9389 3aae70f72126
child 9745 258c320256dc
--- a/QTfrontend/util/DataManager.cpp	Tue Dec 03 18:09:54 2013 +0100
+++ b/QTfrontend/util/DataManager.cpp	Tue Dec 03 23:54:58 2013 +0400
@@ -98,8 +98,7 @@
 MapModel * DataManager::staticMapModel()
 {
     if (m_staticMapModel == NULL) {
-        m_staticMapModel = new MapModel();
-        m_staticMapModel->loadMaps(MapModel::StaticMap);
+        m_staticMapModel = new MapModel(MapModel::StaticMap, this);
     }
     return m_staticMapModel;
 }
@@ -107,8 +106,7 @@
 MapModel * DataManager::missionMapModel()
 {
     if (m_missionMapModel == NULL) {
-        m_missionMapModel = new MapModel();
-        m_missionMapModel->loadMaps(MapModel::MissionMap);
+        m_missionMapModel = new MapModel(MapModel::MissionMap, this);
     }
     return m_missionMapModel;
 }