[ios] Minor fixes after review

This commit is contained in:
Alex Zolotarev 2012-05-15 01:49:38 +03:00 committed by Alex Zolotarev
parent 9dfdc9ead7
commit 6f0f984929
2 changed files with 4 additions and 3 deletions

View file

@ -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;

View file

@ -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];