- fixed delete permanently in finished list

This commit is contained in:
Christophe Dumez 2007-06-17 12:15:04 +00:00
parent 68b867e480
commit 5e73539393
4 changed files with 19 additions and 18 deletions

View file

@ -864,9 +864,10 @@ void GUI::on_actionOpen_triggered(){
void GUI::on_actionDelete_Permanently_triggered(){
if(tabs->currentIndex() > 1) return;
QModelIndexList selectedIndexes;
bool inDownloadList = true;
bool inDownloadList;
if(tabs->currentIndex() == 0) {
selectedIndexes = downloadList->selectionModel()->selectedIndexes();
inDownloadList = true;
} else {
selectedIndexes = finishedTorrentTab->getFinishedList()->selectionModel()->selectedIndexes();
inDownloadList = false;