mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
in the dock badger, check for membership first when removing a torrent
This commit is contained in:
parent
4d5ab8a4c5
commit
5124d87a5b
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@
|
|||
|
||||
- (void) removeTorrent: (Torrent *) torrent
|
||||
{
|
||||
if ([fHashes count] > 0)
|
||||
if ([fHashes member: [torrent hashString]])
|
||||
{
|
||||
[fHashes removeObject: [torrent hashString]];
|
||||
if ([fHashes count] > 0)
|
||||
|
|
Loading…
Reference in a new issue