diff options
author | Fawzi Mohamed <fawzi.mohamed@digia.com> | 2014-03-31 16:20:22 +0200 |
---|---|---|
committer | Fawzi Mohamed <fawzi.mohamed@digia.com> | 2014-03-31 17:26:55 +0200 |
commit | 781e61a950568f044493bad18a4965abb006dc39 (patch) | |
tree | d77700fe769ef250abec801ccd8e41f984cef22a /src/plugins/ios/iosrunconfiguration.cpp | |
parent | 7ca474b2c81883c6a5ca8e8044ee4a45690f7152 (diff) | |
download | qt-creator-781e61a950568f044493bad18a4965abb006dc39.tar.gz |
ios: make simulator device selection more robust vs corrupted settings
Change-Id: I09657cbfb50a8dfeeb4122c920b24926684a1680
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Diffstat (limited to 'src/plugins/ios/iosrunconfiguration.cpp')
-rw-r--r-- | src/plugins/ios/iosrunconfiguration.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/ios/iosrunconfiguration.cpp b/src/plugins/ios/iosrunconfiguration.cpp index 87d0dbc229..780d8a7240 100644 --- a/src/plugins/ios/iosrunconfiguration.cpp +++ b/src/plugins/ios/iosrunconfiguration.cpp @@ -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); } |