diff options
| author | Sixels <sixels@protonmail.com> | 2022-04-19 13:42:26 -0300 |
|---|---|---|
| committer | Sixels <sixels@protonmail.com> | 2022-04-19 13:52:31 -0300 |
| commit | 03624e206009e5c1c14a2ad48e37865ec7741e00 (patch) | |
| tree | 50c539b2787764263b86a331a79b41345387ccc2 /src/config/ConfigManager.cpp | |
| parent | 1eec8c374151bdb74559749bb76fa732e41cb0ba (diff) | |
Handle subcategories
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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; } |
