forked from qt-creator/qt-creator
ProjectExplorer: Fix restoring workspace project targets
Having a target without a build configuration is a valid state now with
the support for workspace build configurations, because a workspace
project does not require a build configuration but can handle custom
ones if added by the user since:
a43d687a10
Change-Id: I480be21a9b226d4a68a81d48a8f353fa18a05bc5
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -926,8 +926,6 @@ bool Target::addConfigurationsFromMap(const Utils::Store &map, bool setActiveCon
|
|||||||
if (i == activeConfiguration)
|
if (i == activeConfiguration)
|
||||||
setActiveBuildConfiguration(bc);
|
setActiveBuildConfiguration(bc);
|
||||||
}
|
}
|
||||||
if (buildConfigurations().isEmpty() && BuildConfigurationFactory::find(this))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
int dcCount = map.value(DC_COUNT_KEY, 0).toInt(&ok);
|
int dcCount = map.value(DC_COUNT_KEY, 0).toInt(&ok);
|
||||||
if (!ok || dcCount < 0)
|
if (!ok || dcCount < 0)
|
||||||
|
Reference in New Issue
Block a user