1
0
Fork 0
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:
Mitchell Livingston 2011-06-19 03:59:04 +00:00
parent 4d5ab8a4c5
commit 5124d87a5b

View file

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