qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
28.48k stars 3.99k forks source link

"Delete .torrent files afterwards --> Also when addition is cancelled" setting doesn't work correctly #21723

Closed thericle closed 2 weeks ago

thericle commented 3 weeks ago

qBittorrent & operating system versions

qBittorrent: 5.0.1 x64 Operating system: Windows 11 Pro x64 (23H2)

What is the problem?

When you have checked both "Delete .torrent files afterwards" and "Also when addition is cancelled", the .torrent file gets deleted only the second time you open it and click on "Cancel", not the first time.

Steps to reproduce

  1. Check both "Delete .torrent files afterwards" and "Also when addition is cancelled".
  2. Download a .torrent file.
  3. Double-click on it to open it with qBittorrent.
  4. Click on "Cancel".
  5. The .torrent file should have been deleted but it hasn't.
  6. Double-click on it to open the .torrent file again.
  7. Click on "Cancel" again.
  8. Now the .torrent file is deleted but only after the second time you do this.

Additional context

No response

Log(s) & preferences file(s)

No response