Commit 773b41ff authored by Christian Kandeler's avatar Christian Kandeler
Browse files

QbsProjectManager: Prevent excessively long profile names.

Kit names can get quite long (default ones, too), so cut the name off
after eight characters. Then append the Core::Id to guarantee

Change-Id: Id6a0c2c56c22a6092430d6906389ce70901cf337
Task-number: QBS-734
Reviewed-by: default avatarJoerg Bornemann <>
parent 24afad2c
......@@ -192,7 +192,8 @@ void QbsManager::addQtProfileFromKit(const QString &profileName, const ProjectEx
void QbsManager::addProfileFromKit(const ProjectExplorer::Kit *k)
const QString name = QString::fromLatin1("qtc_") + k->fileSystemFriendlyName();
const QString name = QString::fromLatin1("qtc_%1_%2").arg(k->fileSystemFriendlyName().left(8),
QString::number(k->id().uniqueIdentifier(), 16));
setProfileForKit(name, k);
addQtProfileFromKit(name, k);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment