From 3caaa483d4bf8f18f62f8a8f03a0922ea8a4cb7e Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 29 Nov 2023 03:39:45 +0000 Subject: [PATCH] configmgr: fix parsing of touchdevice groups fixes #3992 --- 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 cf5f5972..07c1f51f 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1515,7 +1515,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.starts_with("device")) currentCategory = ""; else currentCategory = currentCategory.substr(0, LASTSEP);