From 93423f63512f7d7e6d21bc8e75fc1a17bdba28aa Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Sat, 5 Oct 2019 08:21:59 -0400 Subject: don't log "(no guid"), happens all the time for the windows firewall --- src/envsecurity.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/envsecurity.cpp') diff --git a/src/envsecurity.cpp b/src/envsecurity.cpp index ffb17c42..786291c6 100644 --- a/src/envsecurity.cpp +++ b/src/envsecurity.cpp @@ -206,9 +206,10 @@ QString SecurityProduct::toString() const s += ", definitions outdated"; } - if (m_guid.isNull()) { - s += ", (no guid)"; - } else { + // all products have a guid, but the windows firewall is not actually a real + // one from wmi, it's queried independently in getWindowsFirewall() and has a + // null guid, so just don't log it + if (!m_guid.isNull()) { s += ", " + m_guid.toString(QUuid::QUuid::WithoutBraces); } -- cgit v1.3.1