Skip to content

Commit

Permalink
Fixed bug where the refresh button was disabled for briefs that could…
Browse files Browse the repository at this point in the history
… be reloaded.
  • Loading branch information
capttaco committed May 4, 2010
1 parent cba00f8 commit b6d6ad6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/BFMainViewDefaultController.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ - (void)constructTableGroups

// get last opened briefcast
NSArray *lastOpenedBriefcast = [[BFDataManager sharedBFDataManager] briefcastsSortedAs:BFDataManagerSortByDateOpened limitTo:1];
if (lastOpenedBriefcast != nil) {
if (lastOpenedBriefcast != nil && [lastOpenedBriefcast count] > 0) {
BFBriefcastCellController *controller = [[[BFBriefcastCellController alloc] initWithBriefcast:[lastOpenedBriefcast objectAtIndex:0]] autorelease];
controller.delegate = navigation;
[briefcastController addObject:controller];
Expand Down
2 changes: 1 addition & 1 deletion Classes/BFRefreshBriefCellController.m
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ - (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexP
[refresh setImage:[UIImage imageNamed:@"refresh-accessory-disabled.png"] forState:UIControlStateDisabled];

// disable if the brief is local
if ([brief.briefcast isEqual:[[BFDataManager sharedBFDataManager] localBriefcastRefMarker]])
if ([brief.fromURL isEqual:kBFLocallyStoredBriefURLString])
[refresh setEnabled:NO];

cell.accessoryView = refresh;
Expand Down

0 comments on commit b6d6ad6

Please sign in to comment.