forked from organicmaps/organicmaps
Fix according to code review.
This commit is contained in:
parent
4c53d5c0e8
commit
d6736a0ec7
1 changed files with 3 additions and 4 deletions
|
@ -326,13 +326,12 @@
|
|||
- (void)viewWillDisappear:(BOOL)animated
|
||||
{
|
||||
[m_locationManager stop:self];
|
||||
|
||||
// Save possibly edited set name
|
||||
UITableViewCell * cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];
|
||||
if (cell != nil)
|
||||
{
|
||||
NSString * newName = ((UITextField *)[cell.contentView viewWithTag:TEXTFIELD_TAG]).text;
|
||||
NSString * newName = ((UITextField *)[cell.contentView viewWithTag:TEXTFIELD_TAG]).text;
|
||||
if (newName)
|
||||
[self renameBMCategoryIfChanged:newName];
|
||||
}
|
||||
|
||||
[super viewWillDisappear:animated];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue