Commit 11c10146 authored by dt's avatar dt

QtVersion::toolchain() can be 0, fix crash.

Backport of a very similar patch to master.
parent c41e84fe
......@@ -377,7 +377,11 @@ void Qt4Project::scheduleUpdateCodeModel(Qt4ProjectManager::Internal::Qt4ProFile
QString Qt4Project::makeCommand(const QString &buildConfiguration) const
return qtVersion(buildConfiguration)->toolChain()->makeCommand();
ProjectExplorer::ToolChain *tc = qtVersion(buildConfiguration)->toolChain();
if (tc)
return tc->makeCommand();
return QString();
void Qt4Project::updateCodeModel()
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