From 004450c207be52b19629c4b118e786c4c227aed3 Mon Sep 17 00:00:00 2001 From: Richard Genoud Date: Sun, 5 Jan 2020 13:48:45 +0100 Subject: [PATCH] thermostat: refresh target temperature dialog --- soft/thermostat/src/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soft/thermostat/src/mainwindow.cpp b/soft/thermostat/src/mainwindow.cpp index 1589f56..e1f2e5f 100644 --- a/soft/thermostat/src/mainwindow.cpp +++ b/soft/thermostat/src/mainwindow.cpp @@ -212,6 +212,8 @@ void MainWindow::apply_automatic_state(void) for (i = 0; i < s->m_rooms.count(); i++) { const struct Room *r = &(s->m_rooms.at(i)); m_zones.at(i)->m_heating_on = get_heater_order(i); + m_zones.at(i)->m_target_temperature = get_target_temperature(i); + m_zones.at(i)->refresh(); qDebug() << "room " << r->name; for (int j = 0; j < r->heaters.count(); j++) { const struct Heater *h = &(r->heaters.at(j));