forked from organicmaps/organicmaps
[ios] Minor fixes after review
This commit is contained in:
parent
9dfdc9ead7
commit
6f0f984929
2 changed files with 4 additions and 3 deletions
|
@ -24,7 +24,8 @@
|
|||
if (text.length)
|
||||
{
|
||||
m_balloon.setName = text;
|
||||
GetFramework().GetBmCategory([text UTF8String]);
|
||||
// Create category if it doesn't exist
|
||||
(void)GetFramework().GetBmCategory([text UTF8String]);
|
||||
|
||||
// Display "Add Bookmark" dialog
|
||||
NSArray * vcs = self.navigationController.viewControllers;
|
||||
|
|
|
@ -129,9 +129,9 @@
|
|||
if (cat && cat->GetName() == [m_balloon.setName UTF8String])
|
||||
moveCheckMark = true;
|
||||
|
||||
if (GetFramework().DeleteBmCategory(indexPath.row))
|
||||
if (f.DeleteBmCategory(indexPath.row))
|
||||
[self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
|
||||
if (GetFramework().GetBmCategoriesCount() == 1)
|
||||
if (f.GetBmCategoriesCount() == 1)
|
||||
{
|
||||
// Disable edit mode to leave at least one bookmarks category
|
||||
[self setEditing:NO animated:YES];
|
||||
|
|
Loading…
Add table
Reference in a new issue