aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/sdktool/adddebuggeroperation.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-05-03 12:47:18 +0200
committerEike Ziller <eike.ziller@qt.io>2019-05-07 08:09:56 +0000
commite9e4c27e3a3f157291a231b8a746bb76dea525b7 (patch)
treee7a207a92ec33a7abd9ed9e5f9a25f6588b966d2 /src/tools/sdktool/adddebuggeroperation.cpp
parent48f8eca5746e945ba177d827ff925d80ad3982fd (diff)
sdktool: Do not fiddle with display names
sdktool made the "display names" unique by potentially adding a number. This has multiple drawbacks: - The display name can contain variables that lead to unique _expanded_ names - Adding a number doesn't really help for distinguishing things - That number is then hard-baked into the install settings Installers should take care that they register identifiable names. And if we really want to ensure unique names, then Qt Creator can do that itself, or even better leave the user to do it, because a number doesn't really help anyhow. Fixes: QTCREATORBUG-17909 Change-Id: Id0f44c0cbe457047a0713bda4980fb5d4bc5bcaa Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/tools/sdktool/adddebuggeroperation.cpp')
-rw-r--r--src/tools/sdktool/adddebuggeroperation.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/tools/sdktool/adddebuggeroperation.cpp b/src/tools/sdktool/adddebuggeroperation.cpp
index e6871cb8b6..3e94603d3c 100644
--- a/src/tools/sdktool/adddebuggeroperation.cpp
+++ b/src/tools/sdktool/adddebuggeroperation.cpp
@@ -204,17 +204,11 @@ QVariantMap AddDebuggerOperation::addDebugger(const QVariantMap &map,
toRemove << QLatin1String(COUNT);
QVariantMap cleaned = RmKeysOperation::rmKeys(map, toRemove);
- // Sanity check: Make sure displayName is unique.
- QStringList nameKeys = FindKeyOperation::findKey(map, QLatin1String(DISPLAYNAME));
- QStringList nameList;
- foreach (const QString &nameKey, nameKeys)
- nameList << GetOperation::get(map, nameKey).toString();
- const QString uniqueName = makeUnique(displayName, nameList);
-
// insert data:
KeyValuePairList data;
data << KeyValuePair(QStringList() << debugger << QLatin1String(ID), QVariant(id));
- data << KeyValuePair(QStringList() << debugger << QLatin1String(DISPLAYNAME), QVariant(uniqueName));
+ data << KeyValuePair(QStringList() << debugger << QLatin1String(DISPLAYNAME),
+ QVariant(displayName));
data << KeyValuePair(QStringList() << debugger << QLatin1String(AUTODETECTED), QVariant(true));
data << KeyValuePair(QStringList() << debugger << QLatin1String(ABIS), QVariant(abis));