summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-28 10:20:26 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-28 10:20:26 +0200
commit5d9d55a2456151654259591f8e98f531d06ed56d (patch)
tree080e0ee99831cc101fd049de141980fe17d1f3ab /src/config/ConfigManager.cpp
parent52c0ba544c55695b0fb0e3c5e9871fe599f7d36d (diff)
fix device closing
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 a502423b..0fba7877 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)
+ if (LASTSEP == std::string::npos || currentCategory.contains("device:"))
currentCategory = "";
else
currentCategory = currentCategory.substr(0, LASTSEP);