cocoaTouch/iPad/TeamSettingsViewController.m
changeset 3276 039145459ac8
parent 3270 9bd8fb1707b9
--- a/cocoaTouch/iPad/TeamSettingsViewController.m	Sat Apr 03 01:55:04 2010 +0000
+++ b/cocoaTouch/iPad/TeamSettingsViewController.m	Sat Apr 03 03:24:12 2010 +0000
@@ -115,17 +115,15 @@
 #pragma mark -
 #pragma mark Table view delegate
 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
-    if (1 == [indexPath section]) {
-        if (childController == nil) {
-            childController = [[SingleTeamViewController alloc] initWithStyle:UITableViewStyleGrouped];
-        }
-        
-        NSInteger row = [indexPath row];
-        NSString *selectedTeam = [[list objectAtIndex:row] stringByDeletingPathExtension];
-        
-        childController.teamName = selectedTeam;
-        [self.navigationController pushViewController:childController animated:YES];
+    if (childController == nil) {
+        childController = [[SingleTeamViewController alloc] initWithStyle:UITableViewStyleGrouped];
     }
+    
+    NSInteger row = [indexPath row];
+    NSString *selectedTeam = [[list objectAtIndex:row] stringByDeletingPathExtension];
+    
+    childController.teamName = selectedTeam;
+    [self.navigationController pushViewController:childController animated:YES];
 }
 
 /*