Checkable#GetProblem(): consider PENDING not a problem

This commit is contained in:
Alexander A. Klimov 2019-12-03 16:56:43 +01:00
parent 857e32ad1d
commit 1931501040
1 changed files with 3 additions and 1 deletions

View File

@ -160,7 +160,9 @@ int Checkable::GetSeverity() const
bool Checkable::GetProblem() const bool Checkable::GetProblem() const
{ {
return !IsStateOK(GetStateRaw()); auto cr (GetLastCheckResult());
return cr && !IsStateOK(cr->GetState());
} }
bool Checkable::GetHandled() const bool Checkable::GetHandled() const