logic: project setup fix

Checking whether a project is currently loaded before accessing it...
This commit is contained in:
Manuel Dobusch
2016-08-23 16:47:57 +02:00
parent 0ad7585811
commit 377f0ef34f
@@ -610,7 +610,13 @@ void QtProjectWizzard::createProject()
}
}
bool settingsChanged = !(application->getCurrentProject()->settingsEqualExceptNameAndLocation(*(m_settings.get())));
bool settingsChanged = false;
if (application->getCurrentProject() != NULL)
{
settingsChanged = !(application->getCurrentProject()->settingsEqualExceptNameAndLocation(*(m_settings.get())));
}
bool appSettingsChanged = !(m_appSettings == *ApplicationSettings::getInstance().get());
if (settingsChanged || appSettingsChanged)