Commit 37a2cee1 authored by Daniel Teske's avatar Daniel Teske
Browse files

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: default avatarTobias Hunger <>
parent d0a8f5ac
......@@ -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()) {
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