Commit 781e61a9 authored by Fawzi Mohamed's avatar Fawzi Mohamed
Browse files

ios: make simulator device selection more robust vs corrupted settings



Change-Id: I09657cbfb50a8dfeeb4122c920b24926684a1680
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent 7ca474b2
......@@ -270,6 +270,10 @@ bool IosRunConfiguration::fromMap(const QVariantMap &map)
valid = true;
if (valid)
m_deviceType = deviceType;
else if (DeviceTypeKitInformation::deviceTypeId(target()->kit()) == Constants::IOS_DEVICE_TYPE)
m_deviceType = IosDeviceType::IosDevice;
else
m_deviceType = IosDeviceType::SimulatedIphoneRetina4Inch;
return RunConfiguration::fromMap(map);
}
......
Supports Markdown
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