diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-11-29 03:39:45 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-11-29 03:39:45 +0000 |
| commit | 3caaa483d4bf8f18f62f8a8f03a0922ea8a4cb7e (patch) | |
| tree | b269c7e512b835ecb89f9f7c08dde1a0aff7e692 /src/config | |
| parent | e2f18f8c7f95e4094acb94c5a06dc6d75d7fc9c1 (diff) | |
configmgr: fix parsing of touchdevice groups
fixes #3992
Diffstat (limited to 'src/config')
| -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 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); |
