logic: Fixed crash when refreshing project after deleting coatidb

This commit is contained in:
Eberhard Graether
2015-12-13 04:32:59 +01:00
parent 26203c4ac8
commit 87ad243f31
4 changed files with 40 additions and 34 deletions
+3 -5
View File
@@ -88,8 +88,7 @@ void Application::loadProject(const FilePath& projectSettingsFilePath)
m_componentManager->refreshViews();
m_project = Project::create(m_storageCache.get());
m_project->loadProjectSettings(projectSettingsFilePath);
m_project->loadStorage();
m_project->loadProject(projectSettingsFilePath);
m_mainView->updateRecentProjectMenu();
}
@@ -101,13 +100,12 @@ void Application::refreshProject()
m_storageCache->clear();
m_componentManager->refreshViews();
m_project->reloadProjectSettings();
m_project->parseCode();
m_project->reloadProject();
}
void Application::saveProject(const FilePath& projectSettingsFilePath)
{
if (!m_project->saveProjectSettings(projectSettingsFilePath))
if (!m_project->saveProject(projectSettingsFilePath))
{
LOG_ERROR("No Project Settings File defined");
}