From 08710ed82288d45e2ff7bbb6f568cb74fa42cc1c Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 23 Nov 2009 07:43:17 +0000 Subject: [PATCH] - Do not delete selected torrents when hitting delete button unless the transfer tab is actually shown --- src/transferlistwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/transferlistwidget.cpp b/src/transferlistwidget.cpp index f93b02a62..8e6ff9ab9 100644 --- a/src/transferlistwidget.cpp +++ b/src/transferlistwidget.cpp @@ -516,6 +516,7 @@ void TransferListWidget::pauseAllTorrents() { } void TransferListWidget::deleteSelectedTorrents() { + if(main_window->getCurrentTabIndex() != TAB_TRANSFER) return; QModelIndexList selectedIndexes = selectionModel()->selectedRows(); if(!selectedIndexes.empty()) { bool delete_local_files = false;