Commit 92cdd704 authored by Daniel Teske's avatar Daniel Teske Committed by Christian Stenger
Browse files

CmakeProject: Don't crash on addKit + cancel

This was introduced by adding the remote linux support for 3.0 in

. If the user cancels the
run cmake dialog, no buildconfiguration is created. The adding of kit
should then not happen. A target without a buildconfiguration should
not happen.

Task-number: QTCREATORBUG-12773
Change-Id: Ic43c5cc13f9e114ea24cc97154a6c084125f6318
Reviewed-by: default avatarChristian Stenger <>
parent 434389bd
......@@ -604,6 +604,8 @@ bool CMakeProject::fromMap(const QVariantMap &map)
bool CMakeProject::setupTarget(Target *t)
if (t->buildConfigurations().isEmpty())
return false;
return true;
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