forked from qt-creator/qt-creator
DeviceManager: Fix bug
Port list of desktop device was force updated. Task-number: QTCREATORBUG-9055 Change-Id: I6b0c2247b16875c12842cd6fba6354eecbd29455 Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
This commit is contained in:
@@ -165,14 +165,6 @@ void DeviceManager::load()
|
||||
break;
|
||||
}
|
||||
}
|
||||
// TODO: Remove this in 2.9; this code introduces a bug #QTCREATORBUG-9055
|
||||
// Set default port for desktop devices.
|
||||
if (device->type() == Constants::DESKTOP_DEVICE_TYPE
|
||||
&& device->freePorts().toString().isEmpty()) {
|
||||
Utils::PortList freePorts;
|
||||
freePorts.addRange(Constants::DESKTOP_PORT_START, Constants::DESKTOP_PORT_END);
|
||||
device->setFreePorts(freePorts);
|
||||
}
|
||||
addDevice(device);
|
||||
}
|
||||
// Append the new SDK devices to the model.
|
||||
|
Reference in New Issue
Block a user