MCPcopy Create free account
hub / github.com/comaps/comaps / LastEditedBMCategory

Method LastEditedBMCategory

libs/map/bookmark_manager.cpp:2313–2330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2311}
2312
2313kml::MarkGroupId BookmarkManager::LastEditedBMCategory()
2314{
2315 CHECK_THREAD_CHECKER(m_threadChecker, ());
2316
2317 if (HasBmCategory(m_lastEditedGroupId))
2318 return m_lastEditedGroupId;
2319
2320 for (auto & cat : m_categories)
2321 {
2322 if (cat.second->GetFileName() == m_lastCategoryUrl)
2323 {
2324 m_lastEditedGroupId = cat.first;
2325 return m_lastEditedGroupId;
2326 }
2327 }
2328 m_lastEditedGroupId = CheckAndCreateDefaultCategory();
2329 return m_lastEditedGroupId;
2330}
2331
2332kml::PredefinedColor BookmarkManager::LastEditedBMColor() const
2333{

Calls 1

GetFileNameMethod · 0.45

Tested by

no test coverage detected