summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-28 10:25:48 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-28 10:25:48 +0200
commit80b3a436d2df350310e1900e19cfc13ae96edc39 (patch)
treeaa00156e947c22a11f6d014ccd1266790662eed5 /src/config/ConfigManager.cpp
parent5d9d55a2456151654259591f8e98f531d06ed56d (diff)
better find device cats
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp2
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);