Commit 57034cf0 authored by Yuchen Deng's avatar Yuchen Deng Committed by Daniel Teske

Fix crash on startup if config does not exist

Change-Id: I590d52bdf31d7e485cf2351dabed4c587911553d
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 282e5ec0
......@@ -391,8 +391,10 @@ void QtVersionManager::findSystemQt()
return;
BaseQtVersion *version = QtVersionFactory::createQtVersionFromQMakePath(systemQMakePath);
version->setDisplayName(BaseQtVersion::defaultDisplayName(version->qtVersionString(), systemQMakePath, true));
m_versions.insert(version->uniqueId(), version);
if (version) {
version->setDisplayName(BaseQtVersion::defaultDisplayName(version->qtVersionString(), systemQMakePath, true));
m_versions.insert(version->uniqueId(), version);
}
}
void QtVersionManager::addVersion(BaseQtVersion *version)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment