Commit 0e7cb4b1 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Kits: Do not construct kits with names starting with -



Those look ugly.

Change-Id: I984060aaddf3294edf748a4c5c167efba7e40da8
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 97b9c0ce
......@@ -206,7 +206,11 @@ static QString candidateName(const QString &name, const QString &postfix)
{
if (name.contains(postfix))
return QString();
return name + QLatin1Char('-') + postfix;
QString candidate = name;
if (!candidate.isEmpty())
candidate.append(QLatin1Char('-'));
candidate.append(postfix);
return candidate;
}
void Kit::setDisplayName(const QString &name)
......
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