From 03624e206009e5c1c14a2ad48e37865ec7741e00 Mon Sep 17 00:00:00 2001 From: Sixels Date: Tue, 19 Apr 2022 13:42:26 -0300 Subject: [PATCH] Handle subcategories --- src/config/ConfigManager.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 30585502..cf2ad8fe 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -260,7 +260,14 @@ void CConfigManager::parseLine(std::string& line) { if (line.find(" {") != std::string::npos) { auto cat = line.substr(0, line.find(" {")); transform(cat.begin(), cat.end(), cat.begin(), ::tolower); - currentCategory = cat; + if (currentCategory.length() != 0) { + currentCategory.push_back(':'); + currentCategory.append(cat); + } + else { + currentCategory = cat; + } + return; }