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>
This commit is contained in:
Fawzi Mohamed
2013-11-28 16:02:22 +01:00
parent 30d914d4e7
commit 8e9bf6d0d8

View File

@@ -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);
}