]> git.saurik.com Git - cydia.git/commitdiff
Fix a runtime syslog warning from UIKit by using the -tableView:accessoryTypeForRowWi...
authorGrant Paul <chpwn@chpwn.com>
Thu, 27 Jan 2011 03:13:30 +0000 (19:13 -0800)
committerGrant Paul <chpwn@chpwn.com>
Thu, 27 Jan 2011 03:13:30 +0000 (19:13 -0800)
MobileCydia.mm

index e3c9d9c236490411775de223dfe86c282876bc81..2079a6abac81b5d86105fe267689c69176bc5e4b 100644 (file)
@@ -7604,14 +7604,11 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
     SourceCell *cell = (SourceCell *) [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
     if(cell == nil) cell = [[[SourceCell alloc] initWithFrame:CGRectZero reuseIdentifier:cellIdentifier] autorelease];
     [cell setSource:[self sourceAtIndexPath:indexPath]];
+    [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
 
     return cell;
 }
 
-- (UITableViewCellAccessoryType) tableView:(UITableView *)tableView accessoryTypeForRowWithIndexPath:(NSIndexPath *)indexPath {
-    return UITableViewCellAccessoryDisclosureIndicator;
-}
-
 - (void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
     Source *source = [self sourceAtIndexPath:indexPath];