mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Do not delete selected torrents when hitting delete button unless the transfer tab is actually shown
This commit is contained in:
parent
5fc4ff22d9
commit
08710ed822
1 changed files with 1 additions and 0 deletions
|
@ -516,6 +516,7 @@ void TransferListWidget::pauseAllTorrents() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransferListWidget::deleteSelectedTorrents() {
|
void TransferListWidget::deleteSelectedTorrents() {
|
||||||
|
if(main_window->getCurrentTabIndex() != TAB_TRANSFER) return;
|
||||||
QModelIndexList selectedIndexes = selectionModel()->selectedRows();
|
QModelIndexList selectedIndexes = selectionModel()->selectedRows();
|
||||||
if(!selectedIndexes.empty()) {
|
if(!selectedIndexes.empty()) {
|
||||||
bool delete_local_files = false;
|
bool delete_local_files = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue