diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-08-28 10:25:48 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-08-28 10:25:48 +0200 |
| commit | 80b3a436d2df350310e1900e19cfc13ae96edc39 (patch) | |
| tree | aa00156e947c22a11f6d014ccd1266790662eed5 /src/config/ConfigManager.cpp | |
| parent | 5d9d55a2456151654259591f8e98f531d06ed56d (diff) | |
better find device cats
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 0fba7877..eb9c2032 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -938,7 +938,7 @@ void CConfigManager::parseLine(std::string& line) { const auto LASTSEP = currentCategory.find_last_of(':'); - if (LASTSEP == std::string::npos || currentCategory.contains("device:")) + if (LASTSEP == std::string::npos || currentCategory.contains("device")) currentCategory = ""; else currentCategory = currentCategory.substr(0, LASTSEP); |
