mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07: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:
parent
dded874350
commit
189514c6de
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue