forked from organicmaps/organicmaps
Fixed updating a category from catalog.
This commit is contained in:
parent
44beb23b48
commit
5167980b98
1 changed files with 4 additions and 3 deletions
|
@ -2179,16 +2179,17 @@ void BookmarkManager::ImportDownloadedFromCatalog(std::string const & id, std::s
|
|||
for (auto const & group : m_categories)
|
||||
{
|
||||
if (id == group.second->GetServerId())
|
||||
{
|
||||
ClearGroup(group.first);
|
||||
idsToDelete.push_back(group.first);
|
||||
}
|
||||
}
|
||||
for (auto const & categoryId : idsToDelete)
|
||||
{
|
||||
ClearGroup(categoryId);
|
||||
m_changesTracker.OnDeleteGroup(categoryId);
|
||||
auto const it = m_categories.find(categoryId);
|
||||
FileWriter::DeleteFileX(it->second->GetFileName());
|
||||
m_categories.erase(categoryId);
|
||||
}
|
||||
UpdateBmGroupIdList();
|
||||
|
||||
CreateCategories(std::move(*collection));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue