- Fixed delete functions for finished list

This commit is contained in:
Christophe Dumez 2007-07-26 12:25:46 +00:00
parent faf6f155ca
commit d3f917b408

View File

@ -1019,7 +1019,10 @@ void GUI::on_actionDelete_Permanently_triggered(){
QStringList hashesToDelete;
foreach(index, selectedIndexes){
if(index.column() == NAME){
hashesToDelete << DLListModel->data(DLListModel->index(index.row(), HASH)).toString();
if(inDownloadList)
hashesToDelete << DLListModel->data(DLListModel->index(index.row(), HASH)).toString();
else
hashesToDelete << finishedTorrentTab->getFinishedListModel()->data(finishedTorrentTab->getFinishedListModel()->index(index.row(), F_HASH)).toString();
}
}
QString fileHash;
@ -1084,7 +1087,10 @@ void GUI::on_actionDelete_triggered(){
QStringList hashesToDelete;
foreach(index, selectedIndexes){
if(index.column() == NAME){
hashesToDelete << DLListModel->data(DLListModel->index(index.row(), HASH)).toString();
if(inDownloadList)
hashesToDelete << DLListModel->data(DLListModel->index(index.row(), HASH)).toString();
else
hashesToDelete << finishedTorrentTab->getFinishedListModel()->data(finishedTorrentTab->getFinishedListModel()->index(index.row(), F_HASH)).toString();
}
}
QString fileHash;