From 80b3a436d2df350310e1900e19cfc13ae96edc39 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 28 Aug 2022 10:25:48 +0200 Subject: [PATCH] better find device cats --- src/config/ConfigManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 0fba7877d..eb9c2032b 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);