forked from qt-creator/qt-creator
Kits: Do not construct kits with names starting with -
Those look ugly. Change-Id: I984060aaddf3294edf748a4c5c167efba7e40da8 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user