Fix crash also in master.

This commit is contained in:
dt
2009-10-28 17:01:48 +01:00
parent ca8bb1e9ba
commit 943a091e82

View File

@@ -1375,6 +1375,8 @@ QString QtVersion::buildDebuggingHelperLibrary()
// TODO: the debugging helper doesn't comply to actual tool chain yet
QList<QSharedPointer<ProjectExplorer::ToolChain> > alltc = toolChains();
ProjectExplorer::ToolChain *tc = alltc.isEmpty() ? 0 : alltc.first().data();
if (!tc)
return QApplication::tr("The Qt Version has no toolchain.");)
tc->addToEnvironment(env);
QString output;
QString directory = DebuggingHelperLibrary::copyDebuggingHelperLibrary(qtInstallData, &output);