mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
Change Session::deleteTorrent() first parameter to take InfoHash type
This commit is contained in:
parent
7f453a80d3
commit
d76adff81d
2 changed files with 2 additions and 2 deletions
|
@ -1625,7 +1625,7 @@ void Session::banIP(const QString &ip)
|
|||
|
||||
// Delete a torrent from the session, given its hash
|
||||
// and from the disk, if the corresponding deleteOption is chosen
|
||||
bool Session::deleteTorrent(const QString &hash, const DeleteOption deleteOption)
|
||||
bool Session::deleteTorrent(const InfoHash &hash, const DeleteOption deleteOption)
|
||||
{
|
||||
TorrentHandle *const torrent = m_torrents.take(hash);
|
||||
if (!torrent) return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue