From c5badbf343d41eafe434b389fbcde8b5c6b6b69e Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 2 Feb 2007 18:03:19 +0000 Subject: [PATCH] simplify getting string --- macosx/InfoWindowController.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 4fe12e397..ecbab6411 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -286,11 +286,12 @@ - (void) updateInfoStats { - if ([[[fTabView selectedTabViewItem] identifier] isEqualToString: TAB_ACTIVITY_IDENT]) + NSString * ident = [[fTabView selectedTabViewItem] identifier]; + if ([ident isEqualToString: TAB_ACTIVITY_IDENT]) [self updateInfoActivity]; - else if ([[[fTabView selectedTabViewItem] identifier] isEqualToString: TAB_PEERS_IDENT]) + else if ([ident isEqualToString: TAB_PEERS_IDENT]) [self updateInfoPeers]; - else if ([[[fTabView selectedTabViewItem] identifier] isEqualToString: TAB_INFO_IDENT]) + else if ([ident isEqualToString: TAB_INFO_IDENT]) [self updateInfoGeneral]; else; } @@ -834,7 +835,6 @@ NSBeep(); torrent = [enumerator nextObject]; //use first torrent - limit = upload ? [torrent uploadLimit] : [torrent downloadLimit]; while ((torrent = [enumerator nextObject])) if (limit != (upload ? [torrent uploadLimit] : [torrent downloadLimit]))