Skip to content

Commit

Permalink
fix selection of location matches
Browse files Browse the repository at this point in the history
  • Loading branch information
krzd committed Sep 3, 2013
1 parent ed5cb7e commit db2d6fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ShnergleApp/MenuViewController.m
Expand Up @@ -148,7 +148,8 @@ - (void)tableView:(UITableView *)tableView didHighlightRowAtIndexPath:(NSIndexPa
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
VenueViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"Venue"];
[viewController setVenueInfo];
appDelegate.activeVenue = searchResults[indexPath.row];
if (indexPath.section == 0) appDelegate.activeVenue = searchResults[indexPath.row];
else appDelegate.activeVenue = searchResultsLocation[indexPath.row];
[self.navigationController pushViewController:viewController animated:YES];
} else if (indexPath.section == 0 && indexPath.row != 0) {
appDelegate.activeVenue = appDelegate.ownVenues[indexPath.row - 1];
Expand Down

0 comments on commit db2d6fc

Please sign in to comment.