forked from qt-creator/qt-creator
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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user