- Fixed removing from finished list

This commit is contained in:
Christophe Dumez 2007-07-25 14:01:48 +00:00
parent 2ab7f6f923
commit 3ba3e12f93
2 changed files with 8 additions and 5 deletions

View file

@ -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");