Browse Source

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.
adaptive-webui-19844
Chocobo1 2 years ago committed by GitHub
parent
commit
189514c6de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/base/digest32.h

2
src/base/digest32.h

@ -122,7 +122,7 @@ public: @@ -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());

Loading…
Cancel
Save