logic: project setup fix
Checking whether a project is currently loaded before accessing it...
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user