simplify getting string

This commit is contained in:
Mitchell Livingston 2007-02-02 18:03:19 +00:00
parent 3b7de9ceec
commit c5badbf343
1 changed files with 4 additions and 4 deletions

View File

@ -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]))