forked from qt-creator/qt-creator
Use parent directory as name for Qt version if directory is 'qt'.
Change-Id: I7a20eebadfda65aa68c1ff4f19c55b8a5e36559a Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -241,9 +241,11 @@ QString BaseQtVersion::defaultDisplayName(const QString &versionString, const Ut
|
|||||||
location = QCoreApplication::translate("QtVersion", "System");
|
location = QCoreApplication::translate("QtVersion", "System");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (dirName.compare(QLatin1String("bin"), Qt::CaseInsensitive)
|
|
||||||
&& dirName.compare(QLatin1String("qtbase"), Qt::CaseInsensitive)) {
|
|
||||||
location = dirName;
|
location = dirName;
|
||||||
|
// Also skip default checkouts named 'qt'. Parent dir might have descriptive name.
|
||||||
|
if (dirName.compare(QLatin1String("bin"), Qt::CaseInsensitive)
|
||||||
|
&& dirName.compare(QLatin1String("qtbase"), Qt::CaseInsensitive)
|
||||||
|
&& dirName.compare(QLatin1String("qt"), Qt::CaseInsensitive)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} while (dir.cdUp());
|
} while (dir.cdUp());
|
||||||
|
Reference in New Issue
Block a user