forked from qt-creator/qt-creator
Kit: Do not add generate empty names
While those do not hurt they are just unnecessary. Change-Id: Ic2a971637fe6b0441c6fffa0d3c5161aea36e924 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -247,9 +247,12 @@ QStringList Kit::candidateNameList(const QString &base) const
|
||||
result << base;
|
||||
foreach (KitInformation *ki, KitManager::kitInformation()) {
|
||||
const QString postfix = ki->displayNamePostfix(this);
|
||||
if (!postfix.isEmpty())
|
||||
if (!postfix.isEmpty()) {
|
||||
QString tmp = candidateName(base, postfix);
|
||||
if (!tmp.isEmpty())
|
||||
result << candidateName(base, postfix);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user