Commit a6dba153 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

KitInformation: Warn if Qt version or Device can not be found.



Change-Id: Ia7a170dd3f66b3c7f3227d07cec8fd78da2a5cb5
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent be79eea1
......@@ -395,6 +395,7 @@ void DeviceKitInformation::fix(Kit *k)
if (!dev.isNull() && dev->type() == DeviceTypeKitInformation::deviceTypeId(k))
return;
qWarning("Device is no longer known, removing from kit \"%s\".", qPrintable(k->displayName()));
setDeviceId(k, Core::Id());
}
......
......@@ -100,8 +100,10 @@ void QtKitInformation::fix(ProjectExplorer::Kit *k)
{
QTC_ASSERT(QtVersionManager::instance()->isLoaded(), return);
BaseQtVersion *version = qtVersion(k);
if (!version)
if (!version) {
qWarning("Qt version is no longer known, removing from kit \"%s\".", qPrintable(k->displayName()));
setQtVersionId(k, -1);
}
}
ProjectExplorer::KitConfigWidget *QtKitInformation::createConfigWidget(ProjectExplorer::Kit *k) const
......
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