summaryrefslogtreecommitdiff
path: root/src/envsecurity.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-05 08:21:59 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-10-05 08:21:59 -0400
commit93423f63512f7d7e6d21bc8e75fc1a17bdba28aa (patch)
tree2fc8a5ca8cc3e606c8c798404b66f8c1c1aa84aa /src/envsecurity.cpp
parent1467cb9955776c0e7738a93eb338321aabfda456 (diff)
don't log "(no guid"), happens all the time for the windows firewall
Diffstat (limited to 'src/envsecurity.cpp')
-rw-r--r--src/envsecurity.cpp7
1 files changed, 4 insertions, 3 deletions
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);
}