diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 460d024f..a502423b 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -935,7 +935,14 @@ void CConfigManager::parseLine(std::string& line) { } if (line.contains("}") && currentCategory != "") { - currentCategory = ""; + + const auto LASTSEP = currentCategory.find_last_of(':'); + + if (LASTSEP == std::string::npos) + currentCategory = ""; + else + currentCategory = currentCategory.substr(0, LASTSEP); + return; }