1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

Change code for remove dialog a bit.

This commit is contained in:
Mitchell Livingston 2006-07-04 19:37:12 +00:00
parent aa304152af
commit 3369b4f36d

View file

@ -528,7 +528,6 @@ static void sleepCallBack(void * controller, io_service_t y,
if (![torrent isSeeding])
downloading++;
}
}
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,
@selector(removeSheetDidEnd:returnCode:contextInfo:), nil, dict, message);
return;
}
else
}
[self confirmRemove: torrents deleteData: deleteData deleteTorrent: deleteTorrent];
}
- (void) removeSheetDidEnd: (NSWindow *) sheet returnCode: (int) returnCode
contextInfo: (NSDictionary *) dict
- (void) removeSheetDidEnd: (NSWindow *) sheet returnCode: (int) returnCode contextInfo: (NSDictionary *) dict
{
[NSApp stopModal];
@ -585,8 +585,7 @@ static void sleepCallBack(void * controller, io_service_t y,
[torrents release];
}
- (void) confirmRemove: (NSArray *) torrents
deleteData: (BOOL) deleteData deleteTorrent: (BOOL) deleteTorrent
- (void) confirmRemove: (NSArray *) torrents deleteData: (BOOL) deleteData deleteTorrent: (BOOL) deleteTorrent
{
//don't want any of these starting then stopping
NSEnumerator * enumerator = [torrents objectEnumerator];