| 2311 | } |
| 2312 | |
| 2313 | kml::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 | |
| 2332 | kml::PredefinedColor BookmarkManager::LastEditedBMColor() const |
| 2333 | { |
no test coverage detected