forked from qt-creator/qt-creator
Fix crash with no toolchain and clicking on build debugging helper
This commit is contained in:
@@ -1370,7 +1370,10 @@ QString QtVersion::buildDebuggingHelperLibrary()
|
|||||||
addToEnvironment(env);
|
addToEnvironment(env);
|
||||||
|
|
||||||
// TODO: the debugging helper doesn't comply to actual tool chain yet
|
// TODO: the debugging helper doesn't comply to actual tool chain yet
|
||||||
|
|
||||||
ProjectExplorer::ToolChain *tc = createToolChain(defaultToolchainType());
|
ProjectExplorer::ToolChain *tc = createToolChain(defaultToolchainType());
|
||||||
|
if (!tc)
|
||||||
|
return QApplication::tr("The Qt Version has no toolchain.");
|
||||||
tc->addToEnvironment(env);
|
tc->addToEnvironment(env);
|
||||||
QString output;
|
QString output;
|
||||||
QString directory = DebuggingHelperLibrary::copyDebuggingHelperLibrary(qtInstallData, &output);
|
QString directory = DebuggingHelperLibrary::copyDebuggingHelperLibrary(qtInstallData, &output);
|
||||||
|
Reference in New Issue
Block a user