Fix crash with no toolchain and clicking on build debugging helper

This commit is contained in:
dt
2009-10-28 16:33:01 +01:00
parent b47d41c2f0
commit 8b2c15013e

View File

@@ -1370,7 +1370,10 @@ QString QtVersion::buildDebuggingHelperLibrary()
addToEnvironment(env);
// TODO: the debugging helper doesn't comply to actual tool chain yet
ProjectExplorer::ToolChain *tc = createToolChain(defaultToolchainType());
if (!tc)
return QApplication::tr("The Qt Version has no toolchain.");
tc->addToEnvironment(env);
QString output;
QString directory = DebuggingHelperLibrary::copyDebuggingHelperLibrary(qtInstallData, &output);