forked from qt-creator/qt-creator
McuSupport: Fix error in McuPackage validity check
The recently added McuPackage::Status::ValidPackageVersionNotDeteced is supposed to be a valid status for an McuPackage, similar to ValidPackageMismatchedVersion. It produces a warning symbol, but is not supposed to block kit creation. Task-number: QTCREATORBUG-28246 Change-Id: Ifdc8488d28019ec76d29114501876c6d7d5e700c Reviewed-by: Rainer Keller <Rainer.Keller@qt.io> Reviewed-by: Daniele Bortolotti <daniele.bortolotti@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -156,7 +156,8 @@ McuPackage::Status McuPackage::status() const
|
||||
|
||||
bool McuPackage::isValidStatus() const
|
||||
{
|
||||
return m_status == Status::ValidPackage || m_status == Status::ValidPackageMismatchedVersion;
|
||||
return m_status == Status::ValidPackage || m_status == Status::ValidPackageMismatchedVersion
|
||||
|| m_status == Status::ValidPackageVersionNotDetected;
|
||||
}
|
||||
|
||||
void McuPackage::updateStatusUi()
|
||||
|
||||
Reference in New Issue
Block a user