mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
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.
This commit is contained in:
@@ -122,7 +122,7 @@ public:
|
|||||||
|
|
||||||
QString hashString() const
|
QString hashString() const
|
||||||
{
|
{
|
||||||
if (m_hashString.isEmpty())
|
if (m_hashString.isEmpty() && isValid())
|
||||||
{
|
{
|
||||||
const QByteArray raw = QByteArray::fromRawData(m_nativeDigest.data(), length());
|
const QByteArray raw = QByteArray::fromRawData(m_nativeDigest.data(), length());
|
||||||
m_hashString = QString::fromLatin1(raw.toHex());
|
m_hashString = QString::fromLatin1(raw.toHex());
|
||||||
|
|||||||
Reference in New Issue
Block a user