--- a/project_files/HedgewarsMobile/Classes/WeaponSettingsViewController.m Sat Jun 19 00:48:47 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/WeaponSettingsViewController.m Sun Jun 20 18:35:59 2010 +0200
@@ -115,6 +115,14 @@
[self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
}
+-(BOOL) tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
+ UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
+ if (![cell.textLabel.text isEqualToString:@"Default"])
+ return YES;
+ else
+ return NO;
+}
+
#pragma mark -
#pragma mark Table view delegate
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {