Commit 8e9bf6d0 authored by Fawzi Mohamed's avatar Fawzi Mohamed
Browse files

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: default avatarChristian Kandeler <christian.kandeler@digia.com>
parent 30d914d4
...@@ -85,7 +85,7 @@ IosDevice::IosDevice() ...@@ -85,7 +85,7 @@ IosDevice::IosDevice()
Constants::IOS_DEVICE_ID) Constants::IOS_DEVICE_ID)
{ {
setDisplayName(IosDevice::name()); setDisplayName(IosDevice::name());
setDeviceState(DeviceStateUnknown); setDeviceState(DeviceDisconnected);
} }
IosDevice::IosDevice(const IosDevice &other) IosDevice::IosDevice(const IosDevice &other)
...@@ -99,7 +99,7 @@ IosDevice::IosDevice(const QString &uid) ...@@ -99,7 +99,7 @@ IosDevice::IosDevice(const QString &uid)
Core::Id(Constants::IOS_DEVICE_ID).withSuffix(uid)) Core::Id(Constants::IOS_DEVICE_ID).withSuffix(uid))
{ {
setDisplayName(IosDevice::name()); setDisplayName(IosDevice::name());
setDeviceState(DeviceStateUnknown); setDeviceState(DeviceDisconnected);
} }
......
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