[iOS] fix crash when deleting bookmarks list from list settings screen

This commit is contained in:
Aleksey Belouosv 2019-02-25 12:59:51 +03:00 committed by Aleksey Belousov
parent 3c249ee8f6
commit aee95072e1
2 changed files with 2 additions and 2 deletions

View file

@ -579,7 +579,6 @@ CGFloat const kPinDiameter = 18.0f;
- (void)categorySettingsController:(CategorySettingsViewController *)viewController didDelete:(MWMMarkGroupID)categoryId
{
[self.navigationController popViewControllerAnimated:YES];
[self.delegate bookmarksVCdidDeleteCategory:self];
}

View file

@ -380,6 +380,7 @@ extension BMCViewController: BookmarksVCDelegate {
}
func bookmarksVCdidDeleteCategory(_ viewController: BookmarksVC!) {
navigationController?.popViewController(animated: true)
guard let parentVC = parent else { return }
navigationController?.popToViewController(parentVC, animated: true)
}
}