@@ -45,14 +45,39 @@ - (void)dealloc { [_nameField release]; [_lengthField release]; [_legacySwitch release]; + [_keyFileLabel release]; [_mainViewController release]; [super dealloc]; } + +- (void)tableView: (UITableView *)tableView + didSelectRowAtIndexPath: (NSIndexPath *)indexPath +{ + [tableView deselectRowAtIndexPath: indexPath + animated: YES]; + + if (indexPath.section == 1 && indexPath.row == 1) + [self selectKeyFile]; +} + +- (NSIndexPath *)tableView: (UITableView *)tableView + willSelectRowAtIndexPath: (NSIndexPath *)indexPath +{ + if (indexPath.section == 1 && indexPath.row == 1) + return indexPath; + + return nil; +} + +- (void)selectKeyFile +{ + showAlert(self, @"Not Supported", @"Key files are not supported yet"); +} - (IBAction)done: (id)sender { OFString *name = self.nameField.text.OFObject; OFString *lengthString = self.lengthField.text.OFObject; @@ -85,11 +110,12 @@ return; } [self.mainViewController.siteStorage setSite: name length: length - legacy: self.legacySwitch.on]; + legacy: self.legacySwitch.on + keyFile: nil]; [self.mainViewController reset]; [self.navigationController popViewControllerAnimated: YES]; }