summaryrefslogtreecommitdiff
path: root/src/tools/sdktool
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2014-07-03 18:53:15 +0300
committerOrgad Shaneh <orgads@gmail.com>2014-07-08 12:41:23 +0200
commit49986d90fc2aa3068a26bb7f4516bdc0c98ab783 (patch)
tree6f22fb1f50271cfbfde9c3d41788fda5793d173c /src/tools/sdktool
parent6059bd237a99032717933792d348e84c4914a005 (diff)
downloadqt-creator-49986d90fc2aa3068a26bb7f4516bdc0c98ab783.tar.gz
SdkTool: Support adding kit for desktop device
Change-Id: Ibaba86dd72655ec3734a7564ae9eec6c3c85df1f Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/tools/sdktool')
-rw-r--r--src/tools/sdktool/adddeviceoperation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/sdktool/adddeviceoperation.cpp b/src/tools/sdktool/adddeviceoperation.cpp
index ee3b1c7087..265668f817 100644
--- a/src/tools/sdktool/adddeviceoperation.cpp
+++ b/src/tools/sdktool/adddeviceoperation.cpp
@@ -45,6 +45,8 @@ const char DEVICE_LIST_ID[] = "DeviceList";
const char DEVICE_ID_ID[] = "InternalId";
+static const char INTERNAL_DSEKTOP_DEVICE_ID[] = "Desktop Device";
+
AddDeviceOperation::AddDeviceOperation()
{ }
@@ -377,6 +379,8 @@ bool AddDeviceOperation::exists(const QString &id)
bool AddDeviceOperation::exists(const QVariantMap &map, const QString &id)
{
+ if (id == QLatin1String(INTERNAL_DSEKTOP_DEVICE_ID))
+ return true;
QVariantMap dmMap = map.value(QLatin1String(DEVICEMANAGER_ID)).toMap();
QVariantList devList = dmMap.value(QLatin1String(DEVICE_LIST_ID)).toList();
foreach (const QVariant &dev, devList) {