mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
Merge pull request #14466 from glassez/sha1hash
Improve "info hash" handling
This commit is contained in:
@@ -296,7 +296,7 @@ bool AddNewTorrentDialog::loadTorrentImpl()
|
||||
return false;
|
||||
}
|
||||
|
||||
m_ui->labelHashData->setText(infoHash);
|
||||
m_ui->labelHashData->setText(infoHash.toString());
|
||||
setupTreeview();
|
||||
TMMChanged(m_ui->comboTTM->currentIndex());
|
||||
return true;
|
||||
@@ -348,7 +348,7 @@ bool AddNewTorrentDialog::loadMagnet(const BitTorrent::MagnetUri &magnetUri)
|
||||
|
||||
BitTorrent::Session::instance()->downloadMetadata(magnetUri);
|
||||
setMetadataProgressIndicator(true, tr("Retrieving metadata..."));
|
||||
m_ui->labelHashData->setText(infoHash);
|
||||
m_ui->labelHashData->setText(infoHash.toString());
|
||||
|
||||
m_magnetURI = magnetUri;
|
||||
return true;
|
||||
|
||||
@@ -313,7 +313,7 @@ void PropertiesWidget::loadTorrentInfos(BitTorrent::Torrent *const torrent)
|
||||
// Save path
|
||||
updateSavePath(m_torrent);
|
||||
// Hash
|
||||
m_ui->labelHashVal->setText(m_torrent->hash());
|
||||
m_ui->labelHashVal->setText(m_torrent->hash().toString());
|
||||
m_propListModel->model()->clear();
|
||||
if (m_torrent->hasMetadata())
|
||||
{
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <QSortFilterProxyModel>
|
||||
|
||||
#include "base/torrentfilter.h"
|
||||
|
||||
namespace BitTorrent
|
||||
|
||||
@@ -496,7 +496,7 @@ void TransferListWidget::copySelectedHashes() const
|
||||
{
|
||||
QStringList torrentHashes;
|
||||
for (BitTorrent::Torrent *const torrent : asConst(getSelectedTorrents()))
|
||||
torrentHashes << torrent->hash();
|
||||
torrentHashes << torrent->hash().toString();
|
||||
|
||||
qApp->clipboard()->setText(torrentHashes.join('\n'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user