1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-09 06:17:58 +00:00

- Do not delete selected torrents when hitting delete button unless the transfer tab is actually shown

This commit is contained in:
Christophe Dumez 2009-11-23 07:43:17 +00:00
parent 5fc4ff22d9
commit 08710ed822

View File

@ -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;