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:
Aurindam Jana
2013-04-18 12:57:42 +02:00
parent 6d65de24b6
commit ec08993b13

View File

@@ -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.