mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
trivial cleanup
This commit is contained in:
parent
0c61836b1e
commit
145d372a0c
3 changed files with 1937 additions and 1939 deletions
|
@ -1915,8 +1915,8 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
[torrent setPreviousAmountFinished: NULL];
|
||||
|
||||
//place torrents into groups
|
||||
BOOL groupRows = [fDefaults boolForKey: @"SortByGroup"];
|
||||
if (groupRows && [fDisplayedTorrents count] > 0 && [NSApp isOnLeopardOrBetter])
|
||||
BOOL groupRows = [fDefaults boolForKey: @"SortByGroup"] && [NSApp isOnLeopardOrBetter];
|
||||
if (groupRows)
|
||||
{
|
||||
NSSortDescriptor * groupDescriptor = [[[NSSortDescriptor alloc] initWithKey: @"groupOrderValue" ascending: YES] autorelease];
|
||||
[fDisplayedTorrents sortUsingDescriptors: [NSArray arrayWithObject: groupDescriptor]];
|
||||
|
@ -1948,7 +1948,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
[fTableView selectValues: selectedValues];
|
||||
|
||||
//reset expanded/collapsed rows
|
||||
if (groupRows && [fDisplayedTorrents count] > 0 && [NSApp isOnLeopardOrBetter])
|
||||
if (groupRows)
|
||||
{
|
||||
enumerator = [fDisplayedTorrents objectEnumerator];
|
||||
NSDictionary * dict;
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -28,7 +28,7 @@
|
|||
#import "NSApplicationAdditions.h"
|
||||
#import "NSMenuAdditions.h"
|
||||
|
||||
#define MAX_GROUP (INT_MAX-100)
|
||||
#define MAX_GROUP (INT_MAX-10)
|
||||
|
||||
#define ACTION_MENU_GLOBAL_TAG 101
|
||||
#define ACTION_MENU_UNLIMITED_TAG 102
|
||||
|
|
Loading…
Reference in a new issue