From cfa4086b0b2a2c870504b8f74b6e5b5ba276d1fc Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 21 Jun 2023 20:58:35 +0200 Subject: [PATCH] configmgr: fix idiotic comparisons in device configs --- 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 d86e54100..6fdce7c41 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1661,7 +1661,7 @@ SConfigValue CConfigManager::getConfigValueSafeDevice(const std::string& dev, co if (foundIt == std::string::npos) continue; - if (cv.first == "input:" + val || cv.first == "input:touchpad:" + cv.first || cv.first == "input:touchdevice:" + val || cv.first == "input:tablet:" + cv.first || + if (cv.first == "input:" + val || cv.first == "input:touchpad:" + val || cv.first == "input:touchdevice:" + val || cv.first == "input:tablet:" + val || cv.first == "input:tablet:" + val) { copy = cv.second; }