From 117e1eed5c1c6acce0d657d5ef5f89e6d9a5a3f7 Mon Sep 17 00:00:00 2001 From: Richard Genoud Date: Wed, 1 Jan 2020 19:04:22 +0100 Subject: [PATCH] thermostat: show a dot instead of a zero --- soft/thermostat/src/zoneitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soft/thermostat/src/zoneitem.cpp b/soft/thermostat/src/zoneitem.cpp index d7bbf54..3bc9cb5 100644 --- a/soft/thermostat/src/zoneitem.cpp +++ b/soft/thermostat/src/zoneitem.cpp @@ -47,7 +47,7 @@ void ZoneItem::refresh(void) { QString text; - if (m_temperature_value == FORCE_OFF) + if ((m_temperature_value == FORCE_OFF) || !m_available) text += QString("-"); else text += QString::number(m_temperature_value); @@ -64,7 +64,7 @@ void ZoneItem::refresh(void) m_temperatureBtn.setText(text); - if (m_hygro_value == FORCE_OFF) + if ((m_hygro_value == FORCE_OFF) || !m_available) text = QString("-"); else text = QString::number(m_hygro_value);