From 53b911bb8e64e924731d7442305f93a8fc3ff37f Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 10 Mar 2007 16:27:03 +0000 Subject: [PATCH] - small fix in delete functions to make them a little bit safer --- src/GUI.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index 196184d7c..e702ec3f0 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -954,10 +954,10 @@ void GUI::deletePermanently(){ // Get the file name QString fileName = DLListModel->data(DLListModel->index(sortedIndex.second.row(), NAME)).toString(); QString fileHash = DLListModel->data(DLListModel->index(sortedIndex.second.row(), HASH)).toString(); - // Delete item from download list - DLListModel->removeRow(sortedIndex.first); // Remove the torrent BTSession.deleteTorrent(fileHash, true); + // Delete item from download list + DLListModel->removeRow(sortedIndex.first); // Update info bar setInfoBar(tr("'%1' was removed.", "'xxx.avi' was removed.").arg(fileName)); --nbTorrents; @@ -995,10 +995,10 @@ void GUI::deleteSelection(){ // Get the file name QString fileName = DLListModel->data(DLListModel->index(sortedIndex.second.row(), NAME)).toString(); QString fileHash = DLListModel->data(DLListModel->index(sortedIndex.second.row(), HASH)).toString(); - // Delete item from download list - DLListModel->removeRow(sortedIndex.first); // Remove the torrent BTSession.deleteTorrent(fileHash, false); + // Delete item from download list + DLListModel->removeRow(sortedIndex.first); // Update info bar setInfoBar(tr("'%1' was removed.", "'xxx.avi' was removed.").arg(fileName)); --nbTorrents;