From d635078166a6e162a244ae22118ac46ee806a94f Mon Sep 17 00:00:00 2001 From: Odizinne Date: Sun, 15 Sep 2024 11:00:07 +0200 Subject: [PATCH] fix bad ifdef --- src/HeadsetControlQt/headsetcontrolqt.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/HeadsetControlQt/headsetcontrolqt.cpp b/src/HeadsetControlQt/headsetcontrolqt.cpp index 5f7d98c..16944a0 100644 --- a/src/HeadsetControlQt/headsetcontrolqt.cpp +++ b/src/HeadsetControlQt/headsetcontrolqt.cpp @@ -334,10 +334,11 @@ void HeadsetControlQt::updateUIWithHeadsetInfo(const QJsonObject &headsetInfo) { // "product" returns "HID Device" on windows, hidapi limitation i guess. // We can use it on linux to get a more precise device name. + QString deviceName; #ifdef __linux__ - QString deviceName = headsetInfo["product"].soString(); + deviceName = headsetInfo["product"].toString(); #endif - QString deviceName = headsetInfo["device"].toString(); + deviceName = headsetInfo["device"].toString(); QStringList capabilities = headsetInfo["capabilities_str"].toVariant().toStringList(); QJsonObject batteryInfo = headsetInfo["battery"].toObject();