mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-12 18:24:58 +08:00
- Fixed delete functions for finished list
This commit is contained in:
parent
faf6f155ca
commit
d3f917b408
10
src/GUI.cpp
10
src/GUI.cpp
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user