From 9af5ec46d8e6aee4ed3d129be662f853942b74bf Mon Sep 17 00:00:00 2001 From: David Schulz Date: Wed, 11 Sep 2024 12:55:55 +0200 Subject: [PATCH] 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: a43d687a1040059e32efbc54738ead55506feb42 Change-Id: I480be21a9b226d4a68a81d48a8f353fa18a05bc5 Reviewed-by: hjk Reviewed-by: Marcus Tillmanns Reviewed-by: Christian Kandeler --- src/plugins/projectexplorer/target.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/plugins/projectexplorer/target.cpp b/src/plugins/projectexplorer/target.cpp index 950067e086f..d5eb1292c27 100644 --- a/src/plugins/projectexplorer/target.cpp +++ b/src/plugins/projectexplorer/target.cpp @@ -926,8 +926,6 @@ bool Target::addConfigurationsFromMap(const Utils::Store &map, bool setActiveCon if (i == activeConfiguration) setActiveBuildConfiguration(bc); } - if (buildConfigurations().isEmpty() && BuildConfigurationFactory::find(this)) - return false; int dcCount = map.value(DC_COUNT_KEY, 0).toInt(&ok); if (!ok || dcCount < 0)