mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Fixed removing from finished list
This commit is contained in:
parent
2ab7f6f923
commit
3ba3e12f93
2 changed files with 8 additions and 5 deletions
|
@ -142,6 +142,7 @@ bool bittorrent::isPaused(QString hash) const{
|
|||
// Delete a torrent from the session, given its hash
|
||||
// permanent = true means that the torrent will be removed from the hard-drive too
|
||||
void bittorrent::deleteTorrent(QString hash, bool permanent){
|
||||
qDebug("Deleting torrent with hash: %s", (const char*)hash.toUtf8());
|
||||
torrent_handle h = s->find_torrent(misc::fromString<sha1_hash>((hash.toStdString())));
|
||||
if(!h.is_valid()){
|
||||
qDebug("/!\\ Error: Invalid handle");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue