GenericKit: Fail to open if the default kit is invalid.

The generic project manager does not ask for a kit on opening a new
project, but uses the default kit.

Change-Id: I33371afb386c780ec8e3e9bbc7010ccfa4733d85
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Daniel Teske
2015-09-04 14:59:40 +02:00
parent d0a8f5acbf
commit 37a2cee1c6

View File

@@ -430,6 +430,9 @@ Project::RestoreResult GenericProject::fromMap(const QVariantMap &map, QString *
// Sanity check: We need both a buildconfiguration and a runconfiguration!
QList<Target *> targetList = targets();
if (targetList.isEmpty())
return RestoreResult::Error;
foreach (Target *t, targetList) {
if (!t->activeBuildConfiguration()) {
removeTarget(t);