Browse Source

- Fixed delete functions for finished list

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
d3f917b408
  1. 10
      src/GUI.cpp

10
src/GUI.cpp

@ -1019,7 +1019,10 @@ void GUI::on_actionDelete_Permanently_triggered(){
QStringList hashesToDelete; QStringList hashesToDelete;
foreach(index, selectedIndexes){ foreach(index, selectedIndexes){
if(index.column() == NAME){ 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; QString fileHash;
@ -1084,7 +1087,10 @@ void GUI::on_actionDelete_triggered(){
QStringList hashesToDelete; QStringList hashesToDelete;
foreach(index, selectedIndexes){ foreach(index, selectedIndexes){
if(index.column() == NAME){ 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; QString fileHash;

Loading…
Cancel
Save