a tiny bit of improvement to the tracker tab efficiency

This commit is contained in:
Mitchell Livingston 2010-02-06 15:58:35 +00:00
parent 3b2ad86fcf
commit 310e33bece
1 changed files with 9 additions and 6 deletions

View File

@ -486,6 +486,9 @@ typedef enum
break;
case TAB_TRACKER_TAG:
[fTrackers release];
fTrackers = nil;
oldResizeSaveKey = @"InspectorContentHeightTracker";
break;
@ -1257,6 +1260,12 @@ typedef enum
[fPeers release];
fPeers = nil;
[fPeerTable reloadData];
[fTrackers release];
fTrackers = nil;
[fTrackerTable setTrackers: nil];
[fTrackerTable reloadData];
}
[fFileController setTorrent: nil];
@ -1294,12 +1303,6 @@ typedef enum
[fTrackerTable setTorrent: nil];
[fTrackers release];
fTrackers = nil;
[fTrackerTable setTrackers: fTrackers];
[fTrackerTable reloadData];
[fTrackerAddRemoveControl setEnabled: NO forSegment: TRACKER_ADD_TAG];
[fTrackerAddRemoveControl setEnabled: NO forSegment: TRACKER_REMOVE_TAG];