From 189514c6de22c0bdd3fac91ab8687c2f098301e9 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 10 Apr 2022 12:46:24 +0800 Subject: [PATCH] Fix wrong v2 hash string displayed in WebUI Previously `0000...` was erroneously displayed when v2 hash is absent, now it correctly shows the `N/A`. PR #16846. --- src/base/digest32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/digest32.h b/src/base/digest32.h index b187f3bb4..ffbee3043 100644 --- a/src/base/digest32.h +++ b/src/base/digest32.h @@ -122,7 +122,7 @@ public: QString hashString() const { - if (m_hashString.isEmpty()) + if (m_hashString.isEmpty() && isValid()) { const QByteArray raw = QByteArray::fromRawData(m_nativeDigest.data(), length()); m_hashString = QString::fromLatin1(raw.toHex());