forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user