forked from organicmaps/organicmaps
[new downloader] Correct deleting map with unsaved fixes.
This commit is contained in:
parent
92589cedca
commit
23f2ce3d71
1 changed files with 4 additions and 5 deletions
|
@ -32,17 +32,16 @@
|
|||
|
||||
+ (void)deleteNode:(storage::TCountryId const &)countryId alertController:(MWMAlertViewController *)alertController
|
||||
{
|
||||
auto & f = GetFramework();
|
||||
if (f.HasUnsavedEdits(countryId))
|
||||
if (GetFramework().HasUnsavedEdits(countryId))
|
||||
{
|
||||
[alertController presentUnsavedEditsAlertWithOkBlock:^
|
||||
[alertController presentUnsavedEditsAlertWithOkBlock:[countryId]
|
||||
{
|
||||
f.Storage().DeleteNode(countryId);
|
||||
GetFramework().Storage().DeleteNode(countryId);
|
||||
}];
|
||||
}
|
||||
else
|
||||
{
|
||||
f.Storage().DeleteNode(countryId);
|
||||
GetFramework().Storage().DeleteNode(countryId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue