From 3743207619a051bd8d140bcf7a4c3638b3a81e59 Mon Sep 17 00:00:00 2001 From: Richard Genoud Date: Wed, 4 Mar 2020 15:41:12 +0100 Subject: [PATCH] thermostat: refresh zones also in holiday mode --- soft/thermostat/src/mainwindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/soft/thermostat/src/mainwindow.cpp b/soft/thermostat/src/mainwindow.cpp index ecb6bd8..dea6369 100644 --- a/soft/thermostat/src/mainwindow.cpp +++ b/soft/thermostat/src/mainwindow.cpp @@ -438,7 +438,7 @@ void MainWindow::apply_order_to_heaters(void) case AUTO: qDebug() << "apply AUTO state"; apply_automatic_state(); - break; + return; case ON: heating_order = true; /* fall through */ @@ -446,13 +446,13 @@ void MainWindow::apply_order_to_heaters(void) /* fall through */ default: emit setAllHeatersOn(heating_order); - - for (int i = 0; i < s->m_rooms.count(); i++) { - m_zones.at(i)->refresh(); - } break; } } + + for (int i = 0; i < s->m_rooms.count(); i++) { + m_zones.at(i)->refresh(); + } } void MainWindow::temperature_slot(int idx, double val)