From 0bd90c9362b5e2ea58903641e57be0b37e6f3f87 Mon Sep 17 00:00:00 2001 From: Aleksey Belouosv Date: Wed, 4 Jul 2018 22:38:55 +0300 Subject: [PATCH] [iOS] fix bookmark deletion --- iphone/Maps/Bookmarks/BookmarksVC.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iphone/Maps/Bookmarks/BookmarksVC.mm b/iphone/Maps/Bookmarks/BookmarksVC.mm index bd4be733ce..fc516105c2 100644 --- a/iphone/Maps/Bookmarks/BookmarksVC.mm +++ b/iphone/Maps/Bookmarks/BookmarksVC.mm @@ -227,7 +227,7 @@ CGFloat const kPinDiameter = 18.0f; - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { auto const s = m_sections.at(indexPath.section); - return GetFramework().GetBookmarkManager().IsCategoryFromCatalog(m_categoryId) && s != Section::Info; + return !GetFramework().GetBookmarkManager().IsCategoryFromCatalog(m_categoryId) && s != Section::Info; } - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath