forked from qt-creator/qt-creator
Device Support: Merge id and fingerprint.
It seems pointless to have two identity-related concepts in parallel. The new approach is as follows: The identifier is a Core::Id. If the client code supplies a fingerprint string (as needed for auto-detected devices), the id is derived from it, otherwise it gets created from a newly generated UUID. Change-Id: I680afa6cd2fdd43ec1c461616ba982b3ff55c73a Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/id.h>
|
||||
#include <projectexplorer/devicesupport/devicemanager.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -182,7 +183,7 @@ void RemoteLinuxDeployConfigurationWidget::handleDeviceConfigurationListChanged(
|
||||
{
|
||||
const LinuxDeviceConfiguration::ConstPtr &devConf
|
||||
= d->deployConfiguration->deviceConfiguration();
|
||||
const IDevice::Id internalId = DeviceManager::instance()->internalId(devConf);
|
||||
const Core::Id &internalId = DeviceManager::instance()->internalId(devConf);
|
||||
const int newIndex
|
||||
= d->deployConfiguration->target()->deviceConfigModel()->indexForInternalId(internalId);
|
||||
d->ui.deviceConfigsComboBox->setCurrentIndex(newIndex);
|
||||
|
||||
Reference in New Issue
Block a user