diff --git a/macosx/Controller.m b/macosx/Controller.m
index 96d9bca69..7cb0bc3e0 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -1632,10 +1632,12 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
descriptors = [[NSArray alloc] initWithObjects: orderDescriptor, nil];
else if ([sortType isEqualToString: SORT_ACTIVITY])
{
+ NSSortDescriptor * rateDescriptor = [[[NSSortDescriptor alloc] initWithKey: @"totalRate" ascending: !asc]
+ autorelease];
NSSortDescriptor * activityDescriptor = [[[NSSortDescriptor alloc] initWithKey: @"dateActivityOrAdd" ascending: !asc]
autorelease];
- descriptors = [[NSArray alloc] initWithObjects: activityDescriptor, orderDescriptor, nil];
+ descriptors = [[NSArray alloc] initWithObjects: rateDescriptor, activityDescriptor, orderDescriptor, nil];
}
else
{
diff --git a/macosx/English.lproj/MainMenu.nib/info.nib b/macosx/English.lproj/MainMenu.nib/info.nib
index d9685dbcc..1dee931b8 100644
--- a/macosx/English.lproj/MainMenu.nib/info.nib
+++ b/macosx/English.lproj/MainMenu.nib/info.nib
@@ -10,8 +10,7 @@
5
IBOpenObjects
- 2326
- 1895
+ 1639
IBSystem Version
9B18
diff --git a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib
index 149de5973..0c4f334d3 100644
Binary files a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib and b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib differ
diff --git a/macosx/PrefsWindow.m b/macosx/PrefsWindow.m
index aa3035116..4f8647436 100644
--- a/macosx/PrefsWindow.m
+++ b/macosx/PrefsWindow.m
@@ -24,8 +24,6 @@
#import "PrefsWindow.h"
-#warning elliminate this class
-
@implementation PrefsWindow
- (void) keyDown: (NSEvent *) event
diff --git a/macosx/Torrent.h b/macosx/Torrent.h
index 11119f0a8..5dad9d5f8 100644
--- a/macosx/Torrent.h
+++ b/macosx/Torrent.h
@@ -191,6 +191,7 @@ typedef enum
- (float) downloadRate;
- (float) uploadRate;
+- (float) totalRate;
- (uint64_t) haveVerified;
- (uint64_t) haveTotal;
- (uint64_t) downloadedTotal;
diff --git a/macosx/Torrent.m b/macosx/Torrent.m
index f6aa64b9f..eeaaf1ba0 100644
--- a/macosx/Torrent.m
+++ b/macosx/Torrent.m
@@ -1109,6 +1109,11 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
return fStat->rateUpload;
}
+- (float) totalRate
+{
+ return [self downloadRate] + [self uploadRate];
+}
+
- (uint64_t) haveVerified
{
return fStat->haveValid;
@@ -1461,7 +1466,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
fWaitToStart = waitToStart ? [waitToStart boolValue] : [fDefaults boolForKey: @"AutoStartDownload"];
- [self setOrderValue: orderValue ? [orderValue intValue] : tr_torrentCount(fLib) - 1];
+ fOrderValue = orderValue ? [orderValue intValue] : tr_torrentCount(fLib) - 1;
fError = NO;
[self createFileList];