forked from organicmaps/organicmaps
[iOS] fix crash when deleting bookmarks list from list settings screen
This commit is contained in:
parent
3c249ee8f6
commit
aee95072e1
2 changed files with 2 additions and 2 deletions
|
@ -579,7 +579,6 @@ CGFloat const kPinDiameter = 18.0f;
|
|||
|
||||
- (void)categorySettingsController:(CategorySettingsViewController *)viewController didDelete:(MWMMarkGroupID)categoryId
|
||||
{
|
||||
[self.navigationController popViewControllerAnimated:YES];
|
||||
[self.delegate bookmarksVCdidDeleteCategory:self];
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue