summaryrefslogtreecommitdiff
path: root/src/plugins/ios
diff options
context:
space:
mode:
authorFawzi Mohamed <fawzi.mohamed@digia.com>2013-11-28 16:02:22 +0100
committerFawzi Mohamed <fawzi.mohamed@digia.com>2013-11-29 11:02:49 +0100
commit8e9bf6d0d88c7a563578aaae102c7358adcc8044 (patch)
tree7c3981e0f671712d70255fe7c21c59d698c812a6 /src/plugins/ios
parent30d914d4e794ce4dd406ae5bb8fc1484689fd495 (diff)
downloadqt-creator-8e9bf6d0d88c7a563578aaae102c7358adcc8044.tar.gz
ios: create devices in the disconnected state
The device status is updated only when it is connected or disconnected. Thus a restored device would mantain the unknown state in which the user cannot remove the device. Using always the disconnected state so the use can remove the devices. Change-Id: Icdeb1e314eef0e5b1553decfc728e4b9eab939ab Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/plugins/ios')
-rw-r--r--src/plugins/ios/iosdevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/ios/iosdevice.cpp b/src/plugins/ios/iosdevice.cpp
index b0d552345c..801b865575 100644
--- a/src/plugins/ios/iosdevice.cpp
+++ b/src/plugins/ios/iosdevice.cpp
@@ -85,7 +85,7 @@ IosDevice::IosDevice()
Constants::IOS_DEVICE_ID)
{
setDisplayName(IosDevice::name());
- setDeviceState(DeviceStateUnknown);
+ setDeviceState(DeviceDisconnected);
}
IosDevice::IosDevice(const IosDevice &other)
@@ -99,7 +99,7 @@ IosDevice::IosDevice(const QString &uid)
Core::Id(Constants::IOS_DEVICE_ID).withSuffix(uid))
{
setDisplayName(IosDevice::name());
- setDeviceState(DeviceStateUnknown);
+ setDeviceState(DeviceDisconnected);
}