logic: fixed refresh crash reported in issue #220

This commit is contained in:
malte_langkabel
2016-10-07 10:41:28 +02:00
parent 947b93c572
commit 0bb17b08d3
+8 -5
View File
@@ -188,13 +188,16 @@ void Application::createAndLoadProject(const FilePath& projectSettingsFilePath)
void Application::refreshProject(bool force)
{
bool indexing = m_project->refresh(force);
if (indexing)
if (m_project)
{
m_storageCache->clear();
if (m_hasGUI)
bool indexing = m_project->refresh(force);
if (indexing)
{
m_componentManager->refreshViews();
m_storageCache->clear();
if (m_hasGUI)
{
m_componentManager->refreshViews();
}
}
}
}