ProjectExplorer: Don't create Replacement kits for Design Studio

It's not wanted in this use case

Fixes: QTCREATORBUG-29717
Change-Id: I04ccd4c9e8bfe15e76294a42f3f0bd9d879599e5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2023-10-13 12:47:08 +02:00
parent 8845a7f896
commit b5dec80d6b

View File

@@ -821,7 +821,7 @@ void Project::createTargetFromMap(const Store &map, int index)
} }
Kit *k = KitManager::kit(id); Kit *k = KitManager::kit(id);
if (!k) { if (!k && !ICore::isQtDesignStudio()) {
Id deviceTypeId = Id::fromSetting(targetMap.value(Target::deviceTypeKey())); Id deviceTypeId = Id::fromSetting(targetMap.value(Target::deviceTypeKey()));
if (!deviceTypeId.isValid()) if (!deviceTypeId.isValid())
deviceTypeId = Constants::DESKTOP_DEVICE_TYPE; deviceTypeId = Constants::DESKTOP_DEVICE_TYPE;