mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
Change code for remove dialog a bit.
This commit is contained in:
parent
aa304152af
commit
3369b4f36d
1 changed files with 37 additions and 38 deletions
|
@ -528,7 +528,6 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
if (![torrent isSeeding])
|
if (![torrent isSeeding])
|
||||||
downloading++;
|
downloading++;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ([fDefaults boolForKey: @"CheckRemoveDownloading"] ? downloading > 0 : active > 0)
|
if ([fDefaults boolForKey: @"CheckRemoveDownloading"] ? downloading > 0 : active > 0)
|
||||||
{
|
{
|
||||||
|
@ -564,13 +563,14 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
|
|
||||||
NSBeginAlertSheet(title, @"Remove", @"Cancel", nil, fWindow, self,
|
NSBeginAlertSheet(title, @"Remove", @"Cancel", nil, fWindow, self,
|
||||||
@selector(removeSheetDidEnd:returnCode:contextInfo:), nil, dict, message);
|
@selector(removeSheetDidEnd:returnCode:contextInfo:), nil, dict, message);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
}
|
||||||
|
|
||||||
[self confirmRemove: torrents deleteData: deleteData deleteTorrent: deleteTorrent];
|
[self confirmRemove: torrents deleteData: deleteData deleteTorrent: deleteTorrent];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) removeSheetDidEnd: (NSWindow *) sheet returnCode: (int) returnCode
|
- (void) removeSheetDidEnd: (NSWindow *) sheet returnCode: (int) returnCode contextInfo: (NSDictionary *) dict
|
||||||
contextInfo: (NSDictionary *) dict
|
|
||||||
{
|
{
|
||||||
[NSApp stopModal];
|
[NSApp stopModal];
|
||||||
|
|
||||||
|
@ -585,8 +585,7 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
[torrents release];
|
[torrents release];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) confirmRemove: (NSArray *) torrents
|
- (void) confirmRemove: (NSArray *) torrents deleteData: (BOOL) deleteData deleteTorrent: (BOOL) deleteTorrent
|
||||||
deleteData: (BOOL) deleteData deleteTorrent: (BOOL) deleteTorrent
|
|
||||||
{
|
{
|
||||||
//don't want any of these starting then stopping
|
//don't want any of these starting then stopping
|
||||||
NSEnumerator * enumerator = [torrents objectEnumerator];
|
NSEnumerator * enumerator = [torrents objectEnumerator];
|
||||||
|
|
Loading…
Reference in a new issue