src: headless crash

* fixed crash when loading project in headless mode
This commit is contained in:
malte_langkabel
2016-06-14 16:02:40 +02:00
parent 98b13ef24d
commit 2b93bdc283
+4 -1
View File
@@ -117,7 +117,10 @@ void Application::createAndLoadProject(const FilePath& projectSettingsFilePath)
void Application::loadProject(const FilePath& projectSettingsFilePath)
{
m_componentManager->clearComponents();
if (m_hasGUI)
{
m_componentManager->clearComponents();
}
bool reparse = false;