forked from qt-creator/qt-creator
Kits: Fix uncorrect warning about missing Qt version.
The warning that a kit doesn't have a valid Qt version was also printed for kits that explicitly had Qt version set to "none"/ Change-Id: I7aabb4c339f7c0b4236d5dbb8d6a9817f5bd3c73 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
d3b68556fa
commit
62743e8e46
@@ -100,7 +100,7 @@ void QtKitInformation::fix(ProjectExplorer::Kit *k)
|
|||||||
{
|
{
|
||||||
QTC_ASSERT(QtVersionManager::instance()->isLoaded(), return);
|
QTC_ASSERT(QtVersionManager::instance()->isLoaded(), return);
|
||||||
BaseQtVersion *version = qtVersion(k);
|
BaseQtVersion *version = qtVersion(k);
|
||||||
if (!version) {
|
if (!version && qtVersionId(k) >= 0) {
|
||||||
qWarning("Qt version is no longer known, removing from kit \"%s\".", qPrintable(k->displayName()));
|
qWarning("Qt version is no longer known, removing from kit \"%s\".", qPrintable(k->displayName()));
|
||||||
setQtVersionId(k, -1);
|
setQtVersionId(k, -1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user