summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2011-01-26 19:13:30 -0800
committerGrant Paul <chpwn@chpwn.com>2011-01-26 19:13:30 -0800
commitb89fa270de1a17bf2505ed8bca773c52537a8061 (patch)
treef58fa3a324f40c98931902166d478b5843f19aee
parentea3bb538405a55030753b8345bdf230896ffaed9 (diff)
Fix a runtime syslog warning from UIKit by using the -tableView:accessoryTypeForRowWithIndexPath: in SourceController.
-rw-r--r--MobileCydia.mm5
1 files changed, 1 insertions, 4 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index e3c9d9c..2079a6a 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -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];