From af3bef602fc988cc42c4d1fb4ef7769825c3770e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcelo=20Munhoz=20P=C3=A9los?= Date: Mon, 8 Jul 2013 23:13:20 -0300 Subject: [PATCH] Removes file icon from ROM list. --- apple/iOS/browser.m | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apple/iOS/browser.m b/apple/iOS/browser.m index 38ee180681..9c6648a812 100644 --- a/apple/iOS/browser.m +++ b/apple/iOS/browser.m @@ -139,12 +139,17 @@ - (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { RADirectoryItem* path = (RADirectoryItem*)[self itemForIndexPath:indexPath]; + static NSString *CellIdentifier = @"path"; - UITableViewCell* cell = [self.tableView dequeueReusableCellWithIdentifier:@"path"]; - cell = (cell != nil) ? cell : [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"path"]; + UITableViewCell* cell = [self.tableView dequeueReusableCellWithIdentifier:CellIdentifier]; + cell = (cell != nil) ? cell : [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; cell.textLabel.text = [path.path lastPathComponent]; cell.accessoryType = (path.isDirectory) ? UITableViewCellAccessoryDisclosureIndicator : UITableViewCellAccessoryNone; - cell.imageView.image = [UIImage imageNamed:(path.isDirectory) ? @"ic_dir" : @"ic_file"]; + + if (path.isDirectory) { + cell.imageView.image = [UIImage imageNamed:@"ic_dir"]; + } + return cell; }