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:
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])
|
||||
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];
|
||||
|
|
Loading…
Reference in a new issue