better find device cats

This commit is contained in:
vaxerski 2022-08-28 10:25:48 +02:00
parent 5d9d55a245
commit 80b3a436d2

View file

@ -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);